1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Search for word anywhere, not only from the beginning of string

This commit is contained in:
vague666 2020-02-09 12:40:09 +01:00
parent 363a79dc7a
commit 5dba9fd0cc

View File

@ -772,7 +772,7 @@ static void cmd_show_keys(const char *searchkey, int full)
if ((len == 0 ||
(full ? strncmp(rec->key, searchkey, len) == 0 :
g_ascii_strncasecmp(rec->key, searchkey, len) == 0)) &&
g_strrstr(rec->key, searchkey) != NULL)) &&
(!full || rec->key[len] == '\0')) {
printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, TXT_BIND_LIST,
rec->key, rec->info->id, rec->data == NULL ? "" : rec->data);