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.
master
Benno Schulenberg 2020-01-22 15:36:53 +01:00
parent 25d397e7b3
commit ea874112d8
1 changed files with 1 additions and 3 deletions

View File

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