aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-04-19 20:43:02 -0700
committerJoe Wilm <joe@jwilm.com>2017-04-19 20:43:02 -0700
commit7df35a30eaaa9e2fab3b7dd3e8490de0105458cf (patch)
tree445c879be6933a63ab8d29d0c6e2e772e1cee4eb
parent8963e97a5afe06a3b38836ac78b8e4e39ef75166 (diff)
downloadalacritty-7df35a30eaaa9e2fab3b7dd3e8490de0105458cf.tar.gz
alacritty-7df35a30eaaa9e2fab3b7dd3e8490de0105458cf.zip
Fix issue with back_color_erase
back_color_erase should not set flags like bold, underline, etc.
-rw-r--r--src/term/mod.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs
index e55af7ca..4a02944b 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -1417,7 +1417,9 @@ impl ansi::Handler for Term {
#[inline]
fn clear_line(&mut self, mode: ansi::LineClearMode) {
trace!("clear_line: {:?}", mode);
- let template = self.cursor.template;
+ let mut template = self.cursor.template;
+ template.flags ^= template.flags;
+
let col = self.cursor.point.col;
match mode {
@@ -1455,7 +1457,9 @@ impl ansi::Handler for Term {
#[inline]
fn clear_screen(&mut self, mode: ansi::ClearMode) {
trace!("clear_screen: {:?}", mode);
- let template = self.cursor.template;
+ let mut template = self.cursor.template;
+ template.flags ^= template.flags;
+
match mode {
ansi::ClearMode::Below => {
for cell in &mut self.grid[self.cursor.point.line][self.cursor.point.col..] {