mirror of
https://github.com/tmux/tmux.git
synced 2024-11-04 18:08:48 +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]);
|
return (string[0]);
|
||||||
|
|
||||||
ptr = NULL;
|
ptr = NULL;
|
||||||
if (string[0] == 'C' && string[1] == '-')
|
if ((string[0] == 'C' || string[0] == 'c') && string[1] == '-')
|
||||||
ptr = string + 2;
|
ptr = string + 2;
|
||||||
else if (string[0] == '^')
|
else if (string[0] == '^')
|
||||||
ptr = string + 1;
|
ptr = string + 1;
|
||||||
@ -130,7 +130,7 @@ key_string_lookup_string(const char *string)
|
|||||||
return (KEYC_NONE);
|
return (KEYC_NONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (string[0] == 'M' && string[1] == '-') {
|
if ((string[0] == 'M' || string[0] == 'm') && string[1] == '-') {
|
||||||
ptr = string + 2;
|
ptr = string + 2;
|
||||||
if (ptr[0] == '\0')
|
if (ptr[0] == '\0')
|
||||||
return (KEYC_NONE);
|
return (KEYC_NONE);
|
||||||
|
Loading…
Reference in New Issue
Block a user