mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
no "linenoiseFree" in linenoise-ng
This commit is contained in:
parent
21f515724c
commit
964349e44d
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ void NixRepl::mainLoop(const std::vector<std::string> & files)
|
|||
bool NixRepl::getLine(string & input, const std::string &prompt)
|
||||
{
|
||||
char * s = linenoise(prompt.c_str());
|
||||
Finally doFree([&]() { linenoiseFree(s); });
|
||||
Finally doFree([&]() { free(s); });
|
||||
if (!s) return false;
|
||||
input += s;
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue