1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-11 13:51:01 -05:00

use an empty cell as template when resizing grids

This commit is contained in:
Anders Rasmussen 2017-02-17 17:17:10 +11:00 committed by Joe Wilm
parent 62eb1e2938
commit 3ce6e1e4b2

View file

@ -863,7 +863,7 @@ impl Term {
println!("num_cols, num_lines = {}, {}", num_cols, num_lines); println!("num_cols, num_lines = {}, {}", num_cols, num_lines);
// Resize grids to new size // Resize grids to new size
let template = self.cursor.template; let template = self.empty_cell;
self.grid.resize(num_lines, num_cols, &template); self.grid.resize(num_lines, num_cols, &template);
self.alt_grid.resize(num_lines, num_cols, &template); self.alt_grid.resize(num_lines, num_cols, &template);