Match window substrings case-sensitively

Case-insensitivity was copied from regular complete(), but other
commands which take substrings (/open and /copy) match case-sensitively.
weechat-hashes
C. McEnroe 2021-06-17 19:07:56 -04:00
parent 0d888b88d0
commit 03931d4bb3
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ const char *complete(uint id, const char *prefix) {
const char *completeSubstr(uint id, const char *substr) { const char *completeSubstr(uint id, const char *substr) {
for (match = (match ? match->next : head); match; match = match->next) { for (match = (match ? match->next : head); match; match = match->next) {
if (match->id && match->id != id) continue; if (match->id && match->id != id) continue;
if (!strcasestr(match->str, substr)) continue; if (!strstr(match->str, substr)) continue;
return match->str; return match->str;
} }
return NULL; return NULL;