forked from lix-project/lix
repl-interacter: save history after entering every line
Fixes: lix-project/lix#328
Change-Id: Iedd79ff5f72e84766ebd234c63856170afc624f0
This commit is contained in:
parent
93b7edfd07
commit
73ef8cd50a
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue