From fd410f9ec8bc53e35d46cc213244c978ef7c5816 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Sat, 14 Oct 2017 10:07:40 -0700 Subject: Fix resize behavior Should prevent the messed up background colors that appear in some situations (especially on tiling WMs). --- src/term/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-54-g00ecf