input: report keystroke M-[ as being unbindable instead of just unbound

master
Benno Schulenberg 2016-07-14 22:01:55 +02:00
parent 225203d40d
commit b3fbb7c7ff
1 changed files with 4 additions and 3 deletions

View File

@ -1555,9 +1555,10 @@ void unbound_key(int code)
if (func_key) if (func_key)
statusline(ALERT, _("Unbound key")); statusline(ALERT, _("Unbound key"));
else if (meta_key) { else if (meta_key) {
if (0x60 < code && code < 0x7B) if (code == '[')
code -= 0x20; statusline(ALERT, _("Unbindable key: M-["));
statusline(ALERT, _("Unbound key: M-%c"), code); else
statusline(ALERT, _("Unbound key: M-%c"), toupper(code));
} else if (code < 0x20) } else if (code < 0x20)
statusline(ALERT, _("Unbound key: ^%c"), code + 0x40); statusline(ALERT, _("Unbound key: ^%c"), code + 0x40);
else else