mirror of
https://github.com/tmux/tmux.git
synced 2025-11-05 10:26:04 +00:00
Accept lowercase c- and m- prefix as well as C- and M-.
This commit is contained in:
@@ -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;
|
||||||
@@ -129,8 +129,8 @@ key_string_lookup_string(const char *string)
|
|||||||
return (key | KEYC_CTRL);
|
return (key | KEYC_CTRL);
|
||||||
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user