mirror of
https://github.com/tmux/tmux.git
synced 2026-03-13 03:32:54 +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;
|
name = menu->items[i].name;
|
||||||
if (name == NULL || *name == '-')
|
if (name == NULL || *name == '-')
|
||||||
continue;
|
continue;
|
||||||
if (event->key == menu->items[i].key) {
|
if ((event->key & ~KEYC_MASK_FLAGS) == menu->items[i].key) {
|
||||||
md->choice = i;
|
md->choice = i;
|
||||||
goto chosen;
|
goto chosen;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user