mirror of
https://github.com/tmux/tmux.git
synced 2026-03-12 19:45:46 +00:00
Fix comparison of menu keys, reported by Vladimir Bauer in GitHub issue
4891.
This commit is contained in:
2
menu.c
2
menu.c
@@ -363,7 +363,7 @@ menu_key_cb(struct client *c, void *data, struct key_event *event)
|
||||
name = menu->items[i].name;
|
||||
if (name == NULL || *name == '-')
|
||||
continue;
|
||||
if (event->key == menu->items[i].key) {
|
||||
if ((event->key & ~KEYC_MASK_FLAGS) == menu->items[i].key) {
|
||||
md->choice = i;
|
||||
goto chosen;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user