-
-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tui): don't panic when search result is empty and up is pressed (#…
…2395) In the event there are no results and up is pressed, saturating_sub() should be used to avoid underflowing the usize. This was already present on scroll_down(). fixes #2393
- Loading branch information
1 parent
c7447e8
commit a1a157c
Showing
1 changed file
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters