diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/term/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs index c435d501..487ba20d 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -1702,7 +1702,7 @@ impl ansi::Handler for Term { fn erase_chars(&mut self, count: Column) { trace!("Erasing chars: count={}, col={}", count, self.cursor.point.col); let start = self.cursor.point.col; - let end = min(start + count, self.grid.num_cols() - 1); + let end = min(start + count, self.grid.num_cols()); let row = &mut self.grid[self.cursor.point.line]; let template = self.cursor.template; // Cleared cells have current background color set |