mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-25 14:05:41 -05:00
Update cell to cursor template when adding a tab.
This commit is contained in:
parent
31ed5160a0
commit
96a1503040
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue