From 96a1503040787006a45a69dc55916d983d96421e Mon Sep 17 00:00:00 2001 From: Anders Rasmussen Date: Mon, 27 Feb 2017 19:12:04 +1100 Subject: [PATCH] Update cell to cursor template when adding a tab. --- src/term/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } }