summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/interactive_shell.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/interactive_shell.cpp b/src/main/interactive_shell.cpp
index 1d1f447be..ef576839c 100644
--- a/src/main/interactive_shell.cpp
+++ b/src/main/interactive_shell.cpp
@@ -134,6 +134,7 @@ InteractiveShell::InteractiveShell(ExprManager& exprManager,
}/* InteractiveShell::InteractiveShell() */
InteractiveShell::~InteractiveShell() {
+#if HAVE_LIBREADLINE
int err = ::write_history(d_historyFilename.c_str());
if(err == 0) {
Notice() << "Wrote " << ::history_length << " lines of history to "
@@ -142,6 +143,7 @@ InteractiveShell::~InteractiveShell() {
Notice() << "Could not write history to " << d_historyFilename
<< ": " << strerror(err) << std::endl;
}
+#endif /* HAVE_LIBREADLINE */
}
Command* InteractiveShell::readCommand() {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback