about summary refs log tree commit diff
path: root/src/nix/repl.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-04-11T09·42+0200
committerEelco Dolstra <edolstra@gmail.com>2018-04-11T09·42+0200
commit1839a5542acf4544633e104ecc0a99cbf6b8ba5a (patch)
tree0c70567ac9ef25c3e3e129bd74159e12affdc801 /src/nix/repl.cc
parentd6aaa354788a72f792b7bf909b69a216b8634408 (diff)
Fix #2057
Diffstat (limited to 'src/nix/repl.cc')
-rw-r--r--src/nix/repl.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix/repl.cc b/src/nix/repl.cc
index 9216209173d9..9782e835aeab 100644
--- a/src/nix/repl.cc
+++ b/src/nix/repl.cc
@@ -197,6 +197,7 @@ bool NixRepl::getLine(string & input, const std::string &prompt)
       }
     }
     input += s;
+    input += '\n';
     return true;
 }