on master help sign in
deletion of lines affecting popup scrolling (#2497)
commit301ed9b48f3a331233a4d707a728e1a572702233 authorAlexis Kalabura <55039048+axdank@users.noreply.github.com> dateThu 19 May 2022, 21:18 (4 years ago) parent8493b5f
1 file changed−2
helix-term/src/ui/popup.rs−2
helix-term/src/ui/popup.rs−2
@@ -88,8 +88,6 @@ impl<T: Component> Popup<T> {
8888
8989 pub fn scroll(&mut self, offset: usize, direction: bool) {
9090 if direction {
91− self.scroll += offset;
92−
9391 let max_offset = self.child_size.1.saturating_sub(self.size.1);
9492 self.scroll = (self.scroll + offset).min(max_offset as usize);
9593 } else {