diff options
| author | Michael Biebl <biebl@debian.org> | 2018-10-24 21:01:12 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2018-10-24 21:01:12 +0200 |
| commit | 3626b425d1bc017fdc6f1ea0cfd329d1e1681641 (patch) | |
| tree | e3eb1ffa953bc2ca100c9c50ab2aaa8cbfffa8f0 /clients/cli/common.c | |
| parent | 6518e361171f64bcaaa4bf868139362ed95cc2e0 (diff) | |
New upstream version 1.14.4 upstream/1.14.4
Diffstat (limited to 'clients/cli/common.c')
| -rw-r--r-- | clients/cli/common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clients/cli/common.c b/clients/cli/common.c index 88e98154..d3f5f865 100644 --- a/clients/cli/common.c +++ b/clients/cli/common.c @@ -931,6 +931,8 @@ nmc_readline (const char *prompt_fmt, ...) va_list args; char *prompt, *str; + rl_initialize (); + va_start (args, prompt_fmt); prompt = g_strdup_vprintf (prompt_fmt, args); va_end (args); @@ -985,6 +987,8 @@ nmc_readline_echo (gboolean echo_on, const char *prompt_fmt, ...) prompt = g_strdup_vprintf (prompt_fmt, args); va_end (args); + rl_initialize (); + /* Hide the actual password */ if (!echo_on) { saved_history = history_get_history_state (); |