about summary refs log tree commit diff
path: root/src/nix
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2017-12-11T12·52-0500
committerShea Levy <shea@shealevy.com>2017-12-11T12·52-0500
commit5ba5ca78881173e5e23bfb3295a17561c6530c8b (patch)
treea240b876dc59e2469019142ae92058101269ffb9 /src/nix
parent0b59882fe33d375019f9f6f760144151c2a5aa4b (diff)
parente50d7335bf82f03c5a427892060819afcb32d086 (diff)
Merge branch 'feature/linenoise-ng' of git://github.com/dtzWill/nix
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/local.mk2
-rw-r--r--src/nix/repl.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/local.mk b/src/nix/local.mk
index c7d2d328aab5..bddd53b168d3 100644
--- a/src/nix/local.mk
+++ b/src/nix/local.mk
@@ -2,7 +2,7 @@ programs += nix
 
 nix_DIR := $(d)
 
-nix_SOURCES := $(wildcard $(d)/*.cc) src/linenoise/linenoise.c
+nix_SOURCES := $(wildcard $(d)/*.cc) $(wildcard src/linenoise/*.cpp)
 
 nix_LIBS = libexpr libmain libstore libutil libformat
 
diff --git a/src/nix/repl.cc b/src/nix/repl.cc
index 28a8ebc8c499..1adb816c5bf0 100644
--- a/src/nix/repl.cc
+++ b/src/nix/repl.cc
@@ -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;