summaryrefslogtreecommitdiff
path: root/src/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input.c b/src/input.c
index b9ecd4c..626acad 100644
--- a/src/input.c
+++ b/src/input.c
@@ -426,6 +426,10 @@ get_more_input (char *prompt, char *preinput,
char *final_input;
edit_status status;
+#ifdef HAVE_READLINE_HISTORY_H
+ history_reset();
+#endif /* HAVE_READLINE_HISTORY_H */
+
/* Create our line structure */
line = input_line_new (prompt, preinput, compl_fn);