repl-interacter: save history after entering every line
Fixes: https://git.lix.systems/lix-project/lix/issues/328 Change-Id: Iedd79ff5f72e84766ebd234c63856170afc624f0
This commit is contained in:
@@ -175,6 +175,8 @@ bool ReadlineLikeInteracter::getLine(std::string & input, ReplPromptType promptT
|
||||
|
||||
if (!s)
|
||||
return false;
|
||||
|
||||
write_history(historyFile.c_str());
|
||||
input += s;
|
||||
input += '\n';
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user