From a77b914513017ef5e7287526d4da17581b6f0f27 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 3 Dec 2021 19:02:20 -0500 Subject: another parameter parsing bug --- src/grid.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/grid.rs b/src/grid.rs index 839ac2f..246e9e6 100644 --- a/src/grid.rs +++ b/src/grid.rs @@ -472,7 +472,7 @@ impl Grid { let size = self.size; let pos = self.pos; let row = self.current_row_mut(); - for col in pos.col..((pos.col + count).min(size.cols)) { + for col in pos.col..((pos.col.saturating_add(count)).min(size.cols)) { row.erase(col as usize, attrs); } } -- cgit v1.2.3-54-g00ecf