From b8ac543f828525999c7439f9b7a00de620c46de4 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Fri, 16 May 2008 12:46:09 +0000 Subject: [PATCH] Stop the 'complete word' signal in the default completer when the channel name completion list is non empty, bug #316. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4828 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/chat-completion.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fe-common/core/chat-completion.c b/src/fe-common/core/chat-completion.c index 21e4aff0..29919b5c 100644 --- a/src/fe-common/core/chat-completion.c +++ b/src/fe-common/core/chat-completion.c @@ -632,6 +632,7 @@ static void sig_complete_word(GList **list, WINDOW_REC *window, if (server != NULL && server_ischannel(server, word)) { /* probably completing a channel name */ *list = completion_get_channels(window->active_server, word); + if (*list != NULL) signal_stop(); return; }