From 567310e698323e4c7a910818aae4dcbbbfaa60a8 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 12 Sep 2022 08:44:34 +0200 Subject: [PATCH] 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.) --- src/nano.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nano.c b/src/nano.c index 4346895a..0302e971 100644 --- 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(); }