about summary refs log tree commit diff
path: root/clients/cli/common.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2018-10-24 21:02:52 +0200
committerMichael Biebl <biebl@debian.org>2018-10-24 21:02:52 +0200
commitf87c30ac3b55627a166953aec4de552f5a8c5a53 (patch)
tree1eb82dba7af28b0504403e2aacaeaf927d14065c /clients/cli/common.c
parentbf9fe831a32fc90b956ee777b629adaf6df49d65 (diff)
parent3626b425d1bc017fdc6f1ea0cfd329d1e1681641 (diff)
Update upstream source from tag 'upstream/1.14.4'
Update to upstream version '1.14.4'
with Debian dir 3e8398be8782c0495d64cae17094a6b9e5e62907
Diffstat (limited to 'clients/cli/common.c')
-rw-r--r--clients/cli/common.c4
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 ();