mirror of
https://github.com/alacritty/alacritty.git
synced 2026-11-29 00:29:47 +03:00
Term handles LineClearMode::{Left, All}
This commit is contained in:
1 parent
e0377f02ac
commit
5dfeb95fcb
1 file changed
+12
-1
+12
-1
@@ -640,7 +640,18 @@ impl ansi::Handler for Term {
|
||||
cell.reset(&template);
|
||||
}
|
||||
},
|
||||
_ => (),
|
||||
ansi::LineClearMode::Left => {
|
||||
let row = &mut self.grid[self.cursor.line];
|
||||
for cell in &mut row[..(self.cursor.col + 1)] {
|
||||
cell.reset(&template);
|
||||
}
|
||||
},
|
||||
ansi::LineClearMode::All => {
|
||||
let row = &mut self.grid[self.cursor.line];
|
||||
for cell in &mut row[..] {
|
||||
cell.reset(&template);
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user