diff options
author | Alexis Kalabura | 2022-05-20 01:18:19 +0000 |
---|---|---|
committer | GitHub | 2022-05-20 01:18:19 +0000 |
commit | 301ed9b48f3a331233a4d707a728e1a572702233 (patch) | |
tree | 5eed70a3d0c7882f2d210106a5598c1e94a35d85 | |
parent | 8493b5fca68097efd258ff0ffbcb6863e0c362c9 (diff) |
deletion of lines affecting popup scrolling (#2497)
-rw-r--r-- | helix-term/src/ui/popup.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/helix-term/src/ui/popup.rs b/helix-term/src/ui/popup.rs index 069a22f4..185ec15d 100644 --- a/helix-term/src/ui/popup.rs +++ b/helix-term/src/ui/popup.rs @@ -88,8 +88,6 @@ impl<T: Component> Popup<T> { pub fn scroll(&mut self, offset: usize, direction: bool) { if direction { - self.scroll += offset; - let max_offset = self.child_size.1.saturating_sub(self.size.1); self.scroll = (self.scroll + offset).min(max_offset as usize); } else { |