mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 14:25:08 +00:00
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.
This commit is contained in:
parent
af05671843
commit
b2e4fe1299
6 changed files with 36 additions and 31 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue