mirror of
https://github.com/tmux/tmux.git
synced 2025-01-14 20:58:53 +00:00
Accept lowercase c- and m- prefix as well as C- and M-.
This commit is contained in:
parent
5a1a106637
commit
1d1ea681f0
@ -108,7 +108,7 @@ key_string_lookup_string(const char *string)
|
||||
return (string[0]);
|
||||
|
||||
ptr = NULL;
|
||||
if (string[0] == 'C' && string[1] == '-')
|
||||
if ((string[0] == 'C' || string[0] == 'c') && string[1] == '-')
|
||||
ptr = string + 2;
|
||||
else if (string[0] == '^')
|
||||
ptr = string + 1;
|
||||
@ -129,8 +129,8 @@ key_string_lookup_string(const char *string)
|
||||
return (key | KEYC_CTRL);
|
||||
return (KEYC_NONE);
|
||||
}
|
||||
|
||||
if (string[0] == 'M' && string[1] == '-') {
|
||||
|
||||
if ((string[0] == 'M' || string[0] == 'm') && string[1] == '-') {
|
||||
ptr = string + 2;
|
||||
if (ptr[0] == '\0')
|
||||
return (KEYC_NONE);
|
||||
|
Loading…
Reference in New Issue
Block a user