aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/screen.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/screen.rs b/src/screen.rs
index 1a748e0..7224f6a 100644
--- a/src/screen.rs
+++ b/src/screen.rs
@@ -504,7 +504,13 @@ impl Screen {
}
} else {
cell.set(c.to_string(), attrs);
- self.grid_mut().col_inc(width);
+ self.grid_mut().col_inc(1);
+ if width > 1 {
+ let bgcolor = self.attrs.bgcolor;
+ let next_cell = self.current_cell_mut();
+ next_cell.clear(bgcolor);
+ self.grid_mut().col_inc(1);
+ }
}
}