summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/history.c5
-rw-r--r--src/input.c4
2 files changed, 4 insertions, 5 deletions
diff --git a/src/history.c b/src/history.c
index a96c296..668d9c4 100644
--- a/src/history.c
+++ b/src/history.c
@@ -35,8 +35,6 @@ history_load ()
if (filename && read_history (filename) != 0)
PRINT_DEBUG (("ratpoison: could not read %s - %s\n", filename, strerror (errno)));
- using_history();
-
free (filename);
}
@@ -45,8 +43,6 @@ history_save ()
{
char *filename = get_history_filename ();
- using_history ();
-
if (filename && write_history (filename) != 0)
PRINT_ERROR (("ratpoison: could not write %s - %s\n", filename, strerror (errno)));
@@ -75,7 +71,6 @@ history_add (char *item)
PRINT_DEBUG (("Adding item: %s\n", item));
add_history (item);
- using_history();
}
char *
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);