cli: fix yes/no completion in questionnaire mode

This commit is contained in:
Jiří Klimeš 2016-09-15 03:05:00 +02:00 committed by Beniamino Galvani
parent 08a74c272b
commit 52723bd743

View file

@ -4639,8 +4639,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;