mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +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
Notes:
sideshowbarker
2024-07-19 01:43:02 +09:00
Author: https://github.com/linusg
Commit: b2e4fe1299
Pull-request: https://github.com/SerenityOS/serenity/pull/3853
Reviewed-by: https://github.com/alimpfard
6 changed files with 36 additions and 31 deletions
|
@ -267,7 +267,7 @@ int Shell::builtin_exit(int argc, const char** argv)
|
|||
}
|
||||
}
|
||||
stop_all_jobs();
|
||||
save_history();
|
||||
m_editor->save_history(get_history_path());
|
||||
if (m_is_interactive)
|
||||
printf("Good-bye!\n");
|
||||
exit(exit_code);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue