summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2007-03-12 00:08:58 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2007-03-12 00:08:58 +0000
commit80976505f0bb748369b95246ee305879903e13ae (patch)
tree684bad257a2c35dc50d4e8e6b11c06c5cb6f086a /src
parent1d54d999d5e54752adef549b23065c790306692a (diff)
downloadirssi-80976505f0bb748369b95246ee305879903e13ae.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/core/completion.c3
1 files changed, 2 insertions, 1 deletions
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);