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

In queries the queried nick was always added to completion list even if

the word to be completed didn't start with the same characters


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@952 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-12-04 02:45:34 +00:00 committed by cras
parent ed7f8d401f
commit b67ab7747e

View File

@ -484,7 +484,8 @@ static void sig_complete_word(GList **list, WINDOW_REC *window,
channel = CHANNEL(window->active);
query = QUERY(window->active);
if (channel == NULL && query != NULL) {
if (channel == NULL && query != NULL &&
g_strncasecmp(word, query->name, strlen(word)) == 0) {
/* completion in query */
*list = g_list_append(*list, g_strdup(query->name));
} else if (channel != NULL) {