Commit b3fbb7c7 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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

parent 225203d4
Showing with 4 additions and 3 deletions
+4 -3
...@@ -1555,9 +1555,10 @@ void unbound_key(int code) ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment