diff --git a/src/winio.c b/src/winio.c index 70932515a1c369376159021e11a078285febf6cc..81a4bb70a5e88f0864ffbb1236723297ebb482b9 100644 --- a/src/winio.c +++ b/src/winio.c @@ -370,7 +370,7 @@ int parse_kbinput(WINDOW *win) case 1: /* Reset the escape counter. */ escapes = 0; - if (get_key_buffer_len() == 0) { + if (get_key_buffer_len() == 0 || key_buffer[0] == 0x1b) { /* One escape followed by a non-escape, and * there aren't any other keystrokes waiting: * meta key sequence mode. Set meta_key to