summaryrefslogtreecommitdiff
path: root/Shell/main.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-10-25 23:25:41 +0000
committerAndreas Kling <kling@serenityos.org>2020-10-26 11:27:54 +0100
commitb2e4fe1299bd57b4ab4bb7ea0e0133038db52b26 (patch)
tree991fa54dd3333d8fc502d7cc9a6cfb55cbf18e52 /Shell/main.cpp
parentaf056718437f23e895f45e9b6c473d37a3e5f699 (diff)
downloadserenity-b2e4fe1299bd57b4ab4bb7ea0e0133038db52b26.zip
Shell+LibLine: Move Shell::{load,save}_history() to Line::Editor
This allows us to easily re-use history loading and saving in other programs using Line::Editor, as well as implementing universally recognized HISTCONTROL.
Diffstat (limited to 'Shell/main.cpp')
-rw-r--r--Shell/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Shell/main.cpp b/Shell/main.cpp
index 4ab4805a5b..cc2c08d308 100644
--- a/Shell/main.cpp
+++ b/Shell/main.cpp
@@ -57,7 +57,7 @@ int main(int argc, char** argv)
for (auto& it : s_shell->jobs)
s_shell->kill_job(it.value.ptr(), SIGHUP);
- s_shell->save_history();
+ s_shell->editor()->save_history(s_shell->get_history_path());
});
editor = Line::Editor::construct();