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
1 changed files with 1 additions and 1 deletions

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