nano

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

commit 4e7b92ed4c9c8f5f9cf24c89baf4fd1feee334c0
parent eaeafe29cad72fc58d8929f99e48599599a68af7
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 14 Sep 2018 20:03:24 +0200

tweaks: sharpen an optimization, to allow DEL to be a shortcut

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

diff --git a/src/winio.c b/src/winio.c @@ -1765,7 +1765,8 @@ const sc *get_shortcut(int *kbinput) #endif /* Plain characters cannot be shortcuts, so just skip those. */ - if (!meta_key && (*kbinput & 0x7F) >= 0x20 && *kbinput <= 0xFF) + if (!meta_key && ((*kbinput >= 0x20 && *kbinput < 0x7F) || + (*kbinput >= 0xA0 && *kbinput <= 0xFF))) return NULL; for (s = sclist; s != NULL; s = s->next) {