From 2ac1d46f467c75b5caa43409b280bc123b5824d8 Mon Sep 17 00:00:00 2001 From: Thomas Adam Date: Sat, 16 Feb 2013 21:04:48 +0000 Subject: [PATCH] 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. --- tty-keys.c | 1 - 1 file changed, 1 deletion(-) 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;