mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
core: make key contexts case sensitive (issue #1872)
This commit is contained in:
+4
-1
@@ -136,9 +136,12 @@ gui_key_search_context (const char *context)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (!context)
|
||||
return -1;
|
||||
|
||||
for (i = 0; i < GUI_KEY_NUM_CONTEXTS; i++)
|
||||
{
|
||||
if (string_strcasecmp (gui_key_context_string[i], context) == 0)
|
||||
if (strcmp (gui_key_context_string[i], context) == 0)
|
||||
return i;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user