diff options
Diffstat (limited to 'alacritty_terminal/src/term/mod.rs')
-rw-r--r-- | alacritty_terminal/src/term/mod.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs index 63a5e040..f7b37b23 100644 --- a/alacritty_terminal/src/term/mod.rs +++ b/alacritty_terminal/src/term/mod.rs @@ -1661,8 +1661,7 @@ impl<T: EventListener> ansi::Handler for Term<T> { #[inline] fn clear_line(&mut self, mode: ansi::LineClearMode) { trace!("Clearing line: {:?}", mode); - let mut template = self.cursor.template; - template.flags ^= template.flags; + let template = Cell { bg: self.cursor.template.bg, ..Cell::default() }; let col = self.cursor.point.col; @@ -1725,8 +1724,7 @@ impl<T: EventListener> ansi::Handler for Term<T> { #[inline] fn clear_screen(&mut self, mode: ansi::ClearMode) { trace!("Clearing screen: {:?}", mode); - let mut template = self.cursor.template; - template.flags ^= template.flags; + let template = Cell { bg: self.cursor.template.bg, ..Cell::default() }; // Remove active selections self.grid.selection = None; |