Process ^[ as meta when a partial key is found.

pull/1/head
Nicholas Marriott 2013-03-22 17:02:12 +00:00
parent 7f191c7951
commit c7d1849e1c
1 changed files with 1 additions and 1 deletions

View File

@ -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;