summaryrefslogtreecommitdiffstats
path: root/tty-keys.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2013-02-16 21:04:48 +0000
committerThomas Adam <thomas@xteddy.org>2013-02-16 21:04:48 +0000
commit2ac1d46f467c75b5caa43409b280bc123b5824d8 (patch)
tree512f7cfb73e65cf8a80c8d1f84fcb27e785260d7 /tty-keys.c
parent77a217468507bc598e833bf15b4a1eaf7bbaf284 (diff)
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.
Diffstat (limited to 'tty-keys.c')
-rw-r--r--tty-keys.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tty-keys.c b/tty-keys.c
index bcb582ec..1ede0617 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -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;