aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/grid/storage.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grid/storage.rs b/src/grid/storage.rs
index f6fcc8f3..fb66b0c3 100644
--- a/src/grid/storage.rs
+++ b/src/grid/storage.rs
@@ -76,7 +76,7 @@ impl<T> Storage<T> {
// Generate range of lines that have to be deleted before the zero line
let start = offset.saturating_sub(shrinkage - 1);
- let shrink_before = start..=offset;
+ let shrink_before = start..(offset + 1);
// Generate range of lines that have to be deleted after the zero line
let shrink_after = (self.inner.len() + offset + 1 - shrinkage)..self.inner.len();