1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

Update cell to cursor template when adding a tab.

This commit is contained in:
Anders Rasmussen 2017-02-27 19:12:04 +11:00 committed by Joe Wilm
parent 31ed5160a0
commit 96a1503040

View file

@ -1086,7 +1086,7 @@ impl ansi::Handler for Term {
// Cells were just moved out towards the end of the line; fill in
// between source and dest with blanks.
let template = self.empty_cell;
let template = self.cursor.template;
for c in &mut line[source..destination] {
c.reset(&template);
}
@ -1145,6 +1145,9 @@ impl ansi::Handler for Term {
if (col + 1) == self.grid.num_cols() || self.tabs[*col as usize] {
break;
}
self.insert_blank(Column(1));
col += 1;
}
}