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:
parent
1d54d999d5
commit
80976505f0
@ -636,6 +636,7 @@ static void sig_complete_word(GList **list, WINDOW_REC *window,
|
|||||||
/* we're completing -option? */
|
/* we're completing -option? */
|
||||||
if (*word == '-') {
|
if (*word == '-') {
|
||||||
*list = completion_get_options(cmd, word+1);
|
*list = completion_get_options(cmd, word+1);
|
||||||
|
if (*list != NULL) signal_stop();
|
||||||
g_free(cmd);
|
g_free(cmd);
|
||||||
g_free(line);
|
g_free(line);
|
||||||
return;
|
return;
|
||||||
@ -651,9 +652,9 @@ static void sig_complete_word(GList **list, WINDOW_REC *window,
|
|||||||
cmd = g_strconcat(line, " ", word, NULL);
|
cmd = g_strconcat(line, " ", word, NULL);
|
||||||
*list = g_list_concat(completion_get_subcommands(cmd), *list);
|
*list = g_list_concat(completion_get_subcommands(cmd), *list);
|
||||||
|
|
||||||
if (*list != NULL) signal_stop();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (*list != NULL) signal_stop();
|
||||||
g_free(signal);
|
g_free(signal);
|
||||||
g_free(cmd);
|
g_free(cmd);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user