aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-03-25 10:24:06 +0100
committerGitHub <noreply@github.com>2022-03-25 10:24:06 +0100
commit377782ecaefdd0d02d3edfd7c400f5ee8017aa49 (patch)
treebf2bc0eeb82f5933b68c135334d53a54bd1a0479
parentd9cfd853e52d0173f86a1648246360faa96c516c (diff)
parentcbcb69a39ce7ceb300d5a5588258b7f8c0c0664d (diff)
Merge pull request #6292 from polykernel/permissive-spacing-repl
nix: allow whitespace characters before command in repl
-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 916353d8c..1f9d4fb4e 100644
--- a/src/nix/repl.cc
+++ b/src/nix/repl.cc
@@ -396,6 +396,7 @@ StorePath NixRepl::getDerivationPath(Value & v) {
bool NixRepl::processLine(std::string line)
{
+ line = trim(line);
if (line == "") return true;
_isInterrupted = false;