From 80976505f0bb748369b95246ee305879903e13ae Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Mon, 12 Mar 2007 00:08:58 +0000 Subject: Call signal_stop also when the completion list for the command options/parameters is not empty. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4431 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/completion.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/fe-common') diff --git a/src/fe-common/core/completion.c b/src/fe-common/core/completion.c index be8b76c5..8dcf190a 100644 --- a/src/fe-common/core/completion.c +++ b/src/fe-common/core/completion.c @@ -636,6 +636,7 @@ static void sig_complete_word(GList **list, WINDOW_REC *window, /* we're completing -option? */ if (*word == '-') { *list = completion_get_options(cmd, word+1); + if (*list != NULL) signal_stop(); g_free(cmd); g_free(line); return; @@ -651,9 +652,9 @@ static void sig_complete_word(GList **list, WINDOW_REC *window, cmd = g_strconcat(line, " ", word, NULL); *list = g_list_concat(completion_get_subcommands(cmd), *list); - if (*list != NULL) signal_stop(); } + if (*list != NULL) signal_stop(); g_free(signal); g_free(cmd); -- cgit v1.2.3