aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorAlexis Kalabura2022-05-20 01:18:19 +0000
committerGitHub2022-05-20 01:18:19 +0000
commit301ed9b48f3a331233a4d707a728e1a572702233 (patch)
tree5eed70a3d0c7882f2d210106a5598c1e94a35d85 /helix-term/src
parent8493b5fca68097efd258ff0ffbcb6863e0c362c9 (diff)
deletion of lines affecting popup scrolling (#2497)
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/ui/popup.rs2
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 {