summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-03-22 17:02:12 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-03-22 17:02:12 +0000
commitc7d1849e1cef5a14c2ef8852ef156c10437a902e (patch)
treeb92fbd743723cde5b28dd4bd93ba4a38880d0f88
parent7f191c7951e54f635fc55a4c409bef3060eaacfb (diff)
Process ^[ as meta when a partial key is found.
-rw-r--r--tty-keys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tty-keys.c b/tty-keys.c
index fab8c3fb..d86d22cd 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -498,6 +498,7 @@ tty_keys_next(struct tty *tty)
goto complete_key;
}
+first_key:
/* Is this a meta key? */
if (len >= 2 && buf[0] == '\033') {
if (buf[1] != '\033') {
@@ -518,7 +519,6 @@ tty_keys_next(struct tty *tty)
}
}
-first_key:
/* No key found, take first. */
key = (u_char) *buf;
size = 1;