Skip to content

Commit

Permalink
fix/tui: don't select past last item
Browse files Browse the repository at this point in the history
  • Loading branch information
kxxt committed May 5, 2024
1 parent 55642fd commit f577ab4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tui/event_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ impl EventList {
self
.window
.1
.min(self.events.len())
.saturating_sub(self.window.0)
.saturating_sub(1),
)
Expand Down

0 comments on commit f577ab4

Please sign in to comment.