diff options
author | Anders Rasmussen <divinegod@gmail.com> | 2017-02-27 19:12:04 +1100 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-02-27 08:05:11 -0800 |
commit | 96a1503040787006a45a69dc55916d983d96421e (patch) | |
tree | 6e15a8ee5fe03b93250e54f9b5ddce9abd24c08e | |
parent | 31ed5160a0b71f37c723d78b539003bc5227f184 (diff) | |
download | alacritty-96a1503040787006a45a69dc55916d983d96421e.tar.gz alacritty-96a1503040787006a45a69dc55916d983d96421e.zip |
Update cell to cursor template when adding a tab.
-rw-r--r-- | src/term/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs index 126d34e3..ac450bec 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -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; } } |