mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57: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) {
|
switch (event->key & ~KEYC_MASK_FLAGS) {
|
||||||
|
case KEYC_BTAB:
|
||||||
case KEYC_UP:
|
case KEYC_UP:
|
||||||
case 'k':
|
case 'k':
|
||||||
if (old == -1)
|
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;
|
name = menu->items[md->choice].name;
|
||||||
if (md->choice != count - 1 &&
|
if (md->choice != count - 1 &&
|
||||||
(name != NULL && *name != '-'))
|
(name != NULL && *name != '-'))
|
||||||
i++;
|
i--;
|
||||||
else if (md->choice == count - 1)
|
else if (md->choice == count - 1)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user