diff options
author | Joe Wilm <joe@jwilm.com> | 2018-04-24 09:39:46 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2018-06-02 09:56:50 -0700 |
commit | 0d900cdf69d0d53b52c44b302907380ad4d3735d (patch) | |
tree | 292eff945978b715cb280fdb408c0d19a4bc2828 /src/grid/storage.rs | |
parent | fe749cf0adee1be93fd3473f6d3533fbe892e3dc (diff) | |
download | alacritty-0d900cdf69d0d53b52c44b302907380ad4d3735d.tar.gz alacritty-0d900cdf69d0d53b52c44b302907380ad4d3735d.zip |
Compile on stable
Diffstat (limited to 'src/grid/storage.rs')
-rw-r--r-- | src/grid/storage.rs | 2 |
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(); |