aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/term/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs
index 8dcfa365..f9bd5541 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -1024,7 +1024,7 @@ impl Term {
debug!("num_cols, num_lines = {}, {}", num_cols, num_lines);
// Resize grids to new size
- let template = self.cursor.template;
+ let template = Cell::default();
self.grid.resize(num_lines, num_cols, &template);
self.alt_grid.resize(num_lines, num_cols, &template);