aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/term/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs
index 3cdd5ff3..ca3b5025 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -1138,8 +1138,8 @@ impl Term {
debug!("num_cols, num_lines = {}, {}", num_cols, num_lines);
// Resize grids to new size
- self.grid.resize(num_lines, num_cols, &self.cursor.template);
- self.alt_grid.resize(num_lines, num_cols, &self.cursor_save_alt.template);
+ self.grid.resize(num_lines, num_cols, &Cell::default());
+ self.alt_grid.resize(num_lines, num_cols, &Cell::default());
// Reset scrolling region to new size
self.scroll_region = Line(0)..self.grid.num_lines();