mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 04:27:00 +00:00
Fix PageDown in menus, from Pavel Roskin in GitHub issue 4581.
This commit is contained in:
3
menu.c
3
menu.c
@ -298,6 +298,7 @@ menu_key_cb(struct client *c, void *data, struct key_event *event)
|
||||
}
|
||||
}
|
||||
switch (event->key & ~KEYC_MASK_FLAGS) {
|
||||
case KEYC_BTAB:
|
||||
case KEYC_UP:
|
||||
case 'k':
|
||||
if (old == -1)
|
||||
@ -363,7 +364,7 @@ menu_key_cb(struct client *c, void *data, struct key_event *event)
|
||||
name = menu->items[md->choice].name;
|
||||
if (md->choice != count - 1 &&
|
||||
(name != NULL && *name != '-'))
|
||||
i++;
|
||||
i--;
|
||||
else if (md->choice == count - 1)
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user