cli: fix yes/no completion in questionnaire mode

(cherry picked from commit 52723bd743)
This commit is contained in:
Jiří Klimeš 2016-09-15 03:05:00 +02:00 committed by Beniamino Galvani
parent afb65df37a
commit a695ed8ad6

View file

@ -4635,8 +4635,8 @@ nmcli_con_add_tab_completion (const char *text, int start, int end)
{
char **match_array = NULL;
rl_compentry_func_t *generator_func = NULL;
gs_free char *no = g_strdup_printf (": [%s]", gettext ("no"));
gs_free char *yes = g_strdup_printf (": [%s]", gettext ("yes"));
gs_free char *no = g_strdup_printf ("[%s]: ", gettext ("no"));
gs_free char *yes = g_strdup_printf ("[%s]: ", gettext ("yes"));
/* Disable readline's default filename completion */
rl_attempted_completion_over = 1;