Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
m12t committed Feb 13, 2025
1 parent 8600cf0 commit 03395a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ impl App {
if i >= items.len() - 1 {
items.len() - 1
} else {
self.vertical_scroll.saturating_add(1);
self.vertical_scroll = self.vertical_scroll.saturating_add(1);
i + 1
}
}
Expand All @@ -327,7 +327,7 @@ impl App {
if i == 0 {
0
} else {
self.vertical_scroll.saturating_sub(1);
self.vertical_scroll = self.vertical_scroll.saturating_sub(1);
i - 1
}
}
Expand Down

0 comments on commit 03395a5

Please sign in to comment.