From 9c4c843baca54ff256bfdbdac231b4b6399b8550 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 3 Dec 2021 14:29:35 -0500 Subject: scrolling down should clear the last row's wrap flag --- src/grid.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/grid.rs b/src/grid.rs index d568205..839ac2f 100644 --- a/src/grid.rs +++ b/src/grid.rs @@ -481,6 +481,7 @@ impl Grid { for _ in 0..count { self.rows.remove(self.scroll_bottom as usize); self.rows.insert(self.pos.row as usize, self.new_row()); + self.rows[self.scroll_bottom as usize].wrap(false); } } @@ -514,6 +515,7 @@ impl Grid { for _ in 0..count { self.rows.remove(self.scroll_bottom as usize); self.rows.insert(self.scroll_top as usize, self.new_row()); + self.rows[self.scroll_bottom as usize].wrap(false); } } -- cgit v1.2.3-54-g00ecf