Skip to content

Commit

Permalink
Fix to #199: selection bar vanishes on Page-Down
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenz authored and mptre committed Jun 26, 2017
1 parent ecdca3d commit 92e492b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pick.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,10 +451,13 @@ selected_choice(void)
continue;
break;
case PAGE_DOWN:
if (selection + choices_lines < choices_count)
if (selection + choices_lines < choices_count) {
yscroll = selection += choices_lines;
else
} else {
selection = choices_count - 1;
if (selection - yscroll >= choices_lines)
yscroll = choices_count - choices_lines;
}
break;
case PAGE_UP:
if (selection - choices_lines > 0)
Expand Down

0 comments on commit 92e492b

Please sign in to comment.