nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 8edb0968214759b1f04f197415cbfdd0ca145340
parent 0a387d9d08761a19fa8252a869285e65e5cbc306
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Sat,  6 Aug 2016 19:51:52 +0200

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

This fixes https://savannah.gnu.org/bugs/?48711.

Diffstat:
Msrc/winio.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/winio.c b/src/winio.c @@ -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. */