diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-26 23:32:14 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-28 15:14:12 +0100 |
commit | 844b57a26d87e298fdcff4b159b0a9ff5190330c (patch) | |
tree | 47e86ae6b6fe7a42f084e2af67346341d81777bb | |
parent | f11d59892881e6fb0f65b0529ec4572777af24f9 (diff) | |
download | weechat-844b57a26d87e298fdcff4b159b0a9ff5190330c.zip |
core: make key contexts case sensitive (issue #1872)
-rw-r--r-- | src/gui/gui-key.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/gui-key.c b/src/gui/gui-key.c index e9bbd588d..203126579 100644 --- a/src/gui/gui-key.c +++ b/src/gui/gui-key.c @@ -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; } |