Unnamed repository; edit this file 'description' to name the repository.
deletion of lines affecting popup scrolling (#2497)
Alexis Kalabura 2022-05-20
parent 8493b5f · commit 301ed9b
-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 {