Commit 8edb0968 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

input: after an Esc, don't discard starter byte of a multibyte sequence

This fixes https://savannah.gnu.org/bugs/?48711.
parent 0a387d9d
Showing with 3 additions and 1 deletion
+3 -1
......@@ -369,7 +369,9 @@ int parse_kbinput(WINDOW *win)
retval = keycode;
break;
case 1:
if ((keycode != 'O' && keycode != 'o' && keycode != '[') ||
if (keycode >= 0x80)
retval = keycode;
else if ((keycode != 'O' && keycode != 'o' && keycode != '[') ||
key_buffer_len == 0 || *key_buffer == ESC_CODE) {
/* One escape followed by a single non-escape:
* meta key sequence mode. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment