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
No related merge requests found
Showing with 4 additions and 3 deletions
+4 -3
......@@ -1555,9 +1555,10 @@ void unbound_key(int code)
if (func_key)
statusline(ALERT, _("Unbound key"));
else if (meta_key) {
if (0x60 < code && code < 0x7B)
code -= 0x20;
statusline(ALERT, _("Unbound key: M-%c"), code);
if (code == '[')
statusline(ALERT, _("Unbindable key: M-["));
else
statusline(ALERT, _("Unbound key: M-%c"), toupper(code));
} else if (code < 0x20)
statusline(ALERT, _("Unbound key: ^%c"), code + 0x40);
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