Skip to content

Commit

Permalink
Merge pull request #1036 from seth-wood/pgdown-pgup-crash-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aristocratos authored Feb 13, 2025
2 parents 1a9d4ac + 7f6e02c commit 53df78d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/btop_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1314,10 +1314,12 @@ namespace Menu {
else if (pages > 1 and key == "page_down") {
if (++page >= pages) page = 0;
selected = 0;
last_sel = -1;
}
else if (pages > 1 and key == "page_up") {
if (--page < 0) page = pages - 1;
selected = 0;
last_sel = -1;
}
else if (key == "tab") {
if (++selected_cat >= (int)categories.size()) selected_cat = 0;
Expand Down

0 comments on commit 53df78d

Please sign in to comment.