aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/term/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs
index a35a5df0..07cd27aa 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -1565,8 +1565,9 @@ impl ansi::Handler for Term {
count -= 1;
let cell = &mut self.grid[&self.cursor.point];
- *cell = self.cursor.template;
- cell.c = self.cursor.charsets[self.active_charset].map('\t');
+ if cell.c == ' ' {
+ cell.c = self.cursor.charsets[self.active_charset].map('\t');
+ }
loop {
if (self.cursor.point.col + 1) == self.grid.num_cols() {