mirror of git://git.sv.gnu.org/nano.git
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.)
This commit is contained in:
parent
f90b710c9b
commit
567310e698
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue