From adf4b625e42d76bef3758783ba22c2d1cc2d2901 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Tue, 24 Apr 2018 09:39:46 -0700 Subject: Compile on stable --- src/grid/storage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/grid') 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 Storage { // 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(); -- cgit v1.2.3-54-g00ecf