nano

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

commit ea874112d81bcc0e8b8f43d463f0d965a56b4aff
parent 25d397e7b3472d07547905ebbe3b7dbae0955bc0
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 22 Jan 2020 15:36:53 +0100

tweaks: remove a feedback message that is never shown

A plain printable ASCII character (from 0x20 to 0x7E) can never be
a shortcut, so it also can never get reported as being unbound.

Diffstat:
Msrc/nano.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/nano.c b/src/nano.c @@ -1364,10 +1364,8 @@ void unbound_key(int code) statusline(ALERT, _("Unbound key: M-%c"), toupper(code)); } else if (code == ESC_CODE) statusline(ALERT, _("Unbindable key: ^[")); - else if (code < 0x20) - statusline(ALERT, _("Unbound key: ^%c"), code + 0x40); else - statusline(ALERT, _("Unbound key: %c"), code); + statusline(ALERT, _("Unbound key: ^%c"), code + 0x40); } #ifdef ENABLE_MOUSE