projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
HOST command needs F_KEEP_FINAL_TOKEN.
[pspp-builds.git]
/
src
/
ui
/
terminal
/
read-line.c
diff --git
a/src/ui/terminal/read-line.c
b/src/ui/terminal/read-line.c
index 08f9362355d7ddb8df9d81d807949d592ebfe975..46b53b7008ebfe0a865b1906c8b679f177a9e801 100644
(file)
--- a/
src/ui/terminal/read-line.c
+++ b/
src/ui/terminal/read-line.c
@@
-83,6
+83,8
@@
readln_uninitialize (void)
#if HAVE_READLINE && unix
if (history_file != NULL)
write_history (history_file);
#if HAVE_READLINE && unix
if (history_file != NULL)
write_history (history_file);
+ clear_history ();
+ free (history_file);
#endif
}
#endif
}
@@
-157,7
+159,7
@@
readln_read (struct string *line, enum getl_prompt_style style)
#endif
}
#endif
}
-#if
def
HAVE_READLINE
+#if HAVE_READLINE
static char *command_generator (const char *text, int state);
/* Returns a set of command name completions for TEXT.
static char *command_generator (const char *text, int state);
/* Returns a set of command name completions for TEXT.