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.
pull/1/head
Thomas Adam 2013-02-16 21:04:48 +00:00
parent 77a2174685
commit 2ac1d46f46
1 changed files with 0 additions and 1 deletions

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;