diff --git a/src/winio.c b/src/winio.c index b966c3f..bbff989 100644 --- a/src/winio.c +++ b/src/winio.c @@ -373,7 +373,9 @@ int parse_kbinput(WINDOW *win) case 1: /* Reset the escape counter. */ escapes = 0; - if (get_key_buffer_len() == 0 || key_buffer[0] == 0x1b) { + if (get_key_buffer_len() == 0 || key_buffer[0] == 0x1b || + (*kbinput != 'O' && *kbinput != 'o' && + *kbinput != '[' && *kbinput != 0x1b)) { /* One escape followed by a single non-escape: * meta key sequence mode. */ meta_key = TRUE;