diff options
author | Joe Wilm <joe@jwilm.com> | 2017-10-14 10:07:40 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2017-10-14 10:08:19 -0700 |
commit | fd410f9ec8bc53e35d46cc213244c978ef7c5816 (patch) | |
tree | 97d2d6cc542c5868594148ac2d9307a296ecf8ed | |
parent | 68cca6eb381f88e861439ed6a1dda1ab6a7429d3 (diff) | |
download | alacritty-fd410f9ec8bc53e35d46cc213244c978ef7c5816.tar.gz alacritty-fd410f9ec8bc53e35d46cc213244c978ef7c5816.zip |
Fix resize behavior
Should prevent the messed up background colors that appear in some
situations (especially on tiling WMs).
-rw-r--r-- | src/term/mod.rs | 2 |
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); |