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

View File

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