on master help sign in
deletion of lines affecting popup scrolling (#2497)
301ed9bAlexis Kalabura
helix-term/src/ui/popup.rs−2
@@ -88,8 +88,6 @@ impl<T: Component> Popup<T> {
88
88
89 pub fn scroll(&mut self, offset: usize, direction: bool) {
89 pub fn scroll(&mut self, offset: usize, direction: bool) {
90 if direction {
90 if direction {
91− self.scroll += offset;
92−
93 let max_offset = self.child_size.1.saturating_sub(self.size.1);
91 let max_offset = self.child_size.1.saturating_sub(self.size.1);
94 self.scroll = (self.scroll + offset).min(max_offset as usize);
92 self.scroll = (self.scroll + offset).min(max_offset as usize);
95 } else {
93 } else {