nano

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

commit 567310e698323e4c7a910818aae4dcbbbfaa60a8
parent f90b710c9b69901f65881c53be776c3637b417cf
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 12 Sep 2022 08:44:34 +0200

tweaks: reduce four variations of a message to a single common form

(This could have been done a long time ago, but it simply didn't occur
to me.)

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

diff --git a/src/nano.c b/src/nano.c @@ -1301,17 +1301,17 @@ void unbound_key(int code) #endif #ifdef ENABLE_NANORC if (shifted_metas && 'A' <= code && code <= 'Z') - statusline(AHEM, _("Unbound key: Sh-M-%c"), code); + statusline(AHEM, _("Unbound key: %s%c"), "Sh-M-", code); else #endif - statusline(AHEM, _("Unbound key: M-%c"), toupper(code)); + statusline(AHEM, _("Unbound key: %s%c"), "M-", toupper(code)); } else if (code == ESC_CODE) statusline(AHEM, _("Unbindable key: ^[")); else if (code < 0x20) - statusline(AHEM, _("Unbound key: ^%c"), code + 0x40); + statusline(AHEM, _("Unbound key: %s%c"), "^", code + 0x40); #if defined(ENABLE_BROWSER) || defined (ENABLE_HELP) else - statusline(AHEM, _("Unbound key: %c"), code); + statusline(AHEM, _("Unbound key: %s%c"), "", code); #endif set_blankdelay_to_one(); }