nano

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

commit 3d0bfb0a003b8f6816be05bb899db08f3a9b8423
parent 3cb55c8b277875e4e33250b414d3deb5c2dc421e
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sat, 15 Aug 2020 13:18:48 +0200

input: do not enter invalid bytes when holding down both Alt keys

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

Bug existed since version 5.1, commit 49231191.

Diffstat:
Msrc/winio.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/winio.c b/src/winio.c @@ -939,7 +939,7 @@ int parse_kbinput(WINDOW *win) keycode == DEL_CODE) return CONTROL_SHIFT_DELETE; #endif - else if (!solitary) + else if (!solitary && keycode < 0x20) meta_key = TRUE; } else if (key_buffer_len == 0 || *key_buffer == ESC_CODE || (keycode != 'O' && keycode != '[')) {