summaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/term/mod.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2019-12-24 20:51:06 +0000
committerGitHub <noreply@github.com>2019-12-24 20:51:06 +0000
commit9da0c042d4d4ef72b4488424df5c20d14d4e9585 (patch)
tree945b1356fb1c0a999f3b0aa5ed39c2dba6e35630 /alacritty_terminal/src/term/mod.rs
parent44037fa42aa80002ce54f0a8e4a6203e3e12aaf5 (diff)
downloadalacritty-9da0c042d4d4ef72b4488424df5c20d14d4e9585.tar.gz
alacritty-9da0c042d4d4ef72b4488424df5c20d14d4e9585.zip
Fix screen reset not clearing cell flags
Diffstat (limited to 'alacritty_terminal/src/term/mod.rs')
-rw-r--r--alacritty_terminal/src/term/mod.rs1
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);
}
},