mirror of
https://github.com/tmux/tmux.git
synced 2024-11-18 02:18:53 +00:00
Don't set key KEYC_NONE on xterm_keys_find match()
When calling xterm_keys_find(); if we get a complete match, don't set the key to unknown before calling the action to complete the binding; otherwise non-prefixed bindings will not work.
This commit is contained in:
parent
77a2174685
commit
2ac1d46f46
@ -473,7 +473,6 @@ tty_keys_next(struct tty *tty)
|
|||||||
/* Try to parse a key with an xterm-style modifier. */
|
/* Try to parse a key with an xterm-style modifier. */
|
||||||
switch (xterm_keys_find(buf, len, &size, &key)) {
|
switch (xterm_keys_find(buf, len, &size, &key)) {
|
||||||
case 0: /* found */
|
case 0: /* found */
|
||||||
key = KEYC_NONE;
|
|
||||||
goto complete_key;
|
goto complete_key;
|
||||||
case -1: /* not found */
|
case -1: /* not found */
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user