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)
|
bool NixRepl::getLine(string & input, const std::string &prompt)
|
||||||
{
|
{
|
||||||
char * s = linenoise(prompt.c_str());
|
char * s = linenoise(prompt.c_str());
|
||||||
Finally doFree([&]() { linenoiseFree(s); });
|
Finally doFree([&]() { free(s); });
|
||||||
if (!s) return false;
|
if (!s) return false;
|
||||||
input += s;
|
input += s;
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue