mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
Use cursor cell template when handling 'CSI X' escape sequence
This ensures that the cleared cells are set to the proper background color, which is the main usage of this escape sequence. Fixes #612
This commit is contained in:
parent
529ac47fc8
commit
f8e6f1f623
1 changed files with 1 additions and 1 deletions
|
@ -1495,7 +1495,7 @@ impl ansi::Handler for Term {
|
|||
let end = min(start + count, self.grid.num_cols() - 1);
|
||||
|
||||
let row = &mut self.grid[self.cursor.point.line];
|
||||
let template = self.empty_cell;
|
||||
let template = self.cursor.template; // Cleared cells have current background color set
|
||||
for c in &mut row[start..end] {
|
||||
c.reset(&template);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue