1
0
Fork 0
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:
Aaron Hill 2017-06-14 12:38:44 -04:00 committed by Joe Wilm
parent 529ac47fc8
commit f8e6f1f623

View file

@ -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);
}