diff options
author | Joe Wilm <joe@jwilm.com> | 2018-02-15 19:34:23 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2018-06-02 09:32:29 -0700 |
commit | f67b17ca7b2e0e47ad5eee24d8b86800c61139b4 (patch) | |
tree | 0cff58861d74853e2bf6d67e6b2729083f0bb3ba /src/grid/mod.rs | |
parent | 9b9b138bac9353d2d95ce71ec155c3a9b2963491 (diff) | |
download | alacritty-f67b17ca7b2e0e47ad5eee24d8b86800c61139b4.tar.gz alacritty-f67b17ca7b2e0e47ad5eee24d8b86800c61139b4.zip |
wip fix scroll_down
Diffstat (limited to 'src/grid/mod.rs')
-rw-r--r-- | src/grid/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/grid/mod.rs b/src/grid/mod.rs index 1889d59f..23ee9cf4 100644 --- a/src/grid/mod.rs +++ b/src/grid/mod.rs @@ -236,8 +236,11 @@ impl<T: Copy + Clone> Grid<T> { self.raw.rotate_up(*positions); // Now, restore any scroll region lines - for i in IndexRange(region.end .. self.num_lines()) { + let lines = self.lines; + for i in IndexRange(region.end .. lines) { // First do the swap + // TODO there is a bug here causing a panic. + // TODO math self.raw.swap_lines(i, i + positions); } |