diff options
author | Christian Duerr <contact@christianduerr.com> | 2019-12-24 20:51:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-24 20:51:06 +0000 |
commit | 9da0c042d4d4ef72b4488424df5c20d14d4e9585 (patch) | |
tree | 945b1356fb1c0a999f3b0aa5ed39c2dba6e35630 /alacritty_terminal/src | |
parent | 44037fa42aa80002ce54f0a8e4a6203e3e12aaf5 (diff) | |
download | alacritty-9da0c042d4d4ef72b4488424df5c20d14d4e9585.tar.gz alacritty-9da0c042d4d4ef72b4488424df5c20d14d4e9585.zip |
Fix screen reset not clearing cell flags
Diffstat (limited to 'alacritty_terminal/src')
-rw-r--r-- | alacritty_terminal/src/term/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs index b9462820..4aafde1f 100644 --- a/alacritty_terminal/src/term/mod.rs +++ b/alacritty_terminal/src/term/mod.rs @@ -1785,6 +1785,7 @@ impl<T: EventListener> ansi::Handler for Term<T> { if self.mode.contains(TermMode::ALT_SCREEN) { self.grid.region_mut(..).each(|c| c.reset(&template)); } else { + let template = Cell { bg: template.bg, ..Cell::default() }; self.grid.clear_viewport(&template); } }, |