Skip to content

Commit

Permalink
deletion of lines affecting popup scrolling (helix-editor#2497)
Browse files Browse the repository at this point in the history
  • Loading branch information
axdank authored and mtoohey31 committed Jun 15, 2022
1 parent 222298f commit 39cde45
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions helix-term/src/ui/popup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 39cde45

Please sign in to comment.