From 301ed9b48f3a331233a4d707a728e1a572702233 Mon Sep 17 00:00:00 2001 From: Alexis Kalabura Date: Thu, 19 May 2022 21:18:19 -0400 Subject: deletion of lines affecting popup scrolling (#2497) --- helix-term/src/ui/popup.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'helix-term') 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 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 { -- cgit v1.2.3-70-g09d2