1
0
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:
Sébastien Helleu
2023-01-26 23:32:14 +01:00
parent f11d598928
commit 844b57a26d
+4 -1
View File
@@ -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;
}