diff options
Diffstat (limited to 'src/screen.rs')
-rw-r--r-- | src/screen.rs | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/screen.rs b/src/screen.rs index 0c08881..177a28e 100644 --- a/src/screen.rs +++ b/src/screen.rs @@ -924,13 +924,19 @@ impl Screen { if width > 1 { let pos = self.grid().pos(); if self.current_cell().is_wide() { - let next_next_cell = self - .drawing_cell_mut(crate::grid::Pos { - row: pos.row, - col: pos.col + 1, - }) - .unwrap(); + let next_next_pos = crate::grid::Pos { + row: pos.row, + col: pos.col + 1, + }; + let next_next_cell = + self.drawing_cell_mut(next_next_pos).unwrap(); next_next_cell.clear(attrs); + if next_next_pos.col == size.cols - 1 { + self.grid_mut() + .drawing_row_mut(next_next_pos) + .unwrap() + .wrap(false); + } } let next_cell = self.current_cell_mut(); next_cell.clear(attrs); |