From 39cde459668557d6e963a3f4d12673fcb143a36f Mon Sep 17 00:00:00 2001 From: Alexis Kalabura <55039048+axdank@users.noreply.github.com> Date: Thu, 19 May 2022 21:18:19 -0400 Subject: [PATCH] deletion of lines affecting popup scrolling (#2497) --- helix-term/src/ui/popup.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/helix-term/src/ui/popup.rs b/helix-term/src/ui/popup.rs index 069a22f45b9ba..185ec15daa0b5 100644 --- a/helix-term/src/ui/popup.rs +++ b/helix-term/src/ui/popup.rs @@ -88,8 +88,6 @@ impl Popup { 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 {