aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2018-04-24 09:39:46 -0700
committerJoe Wilm <jwilm@users.noreply.github.com>2018-04-24 09:59:52 -0700
commitadf4b625e42d76bef3758783ba22c2d1cc2d2901 (patch)
tree0f281a196f37fde91281215405318e7c3d27216b
parent298c5694a3c1259520b30e9d07a2dfb6a5a684d2 (diff)
downloadalacritty-adf4b625e42d76bef3758783ba22c2d1cc2d2901.tar.gz
alacritty-adf4b625e42d76bef3758783ba22c2d1cc2d2901.zip
Compile on stable
-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();