1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Emanuele Giaquinta 2007-03-12 00:08:58 +00:00 committed by exg
parent 1d54d999d5
commit 80976505f0

View File

@ -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);