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:
Thomas Adam 2013-02-16 21:04:48 +00:00
parent 77a2174685
commit 2ac1d46f46

View File

@ -473,7 +473,6 @@ tty_keys_next(struct tty *tty)
/* Try to parse a key with an xterm-style modifier. */
switch (xterm_keys_find(buf, len, &size, &key)) {
case 0: /* found */
key = KEYC_NONE;
goto complete_key;
case -1: /* not found */
break;