diff options
author | Scott Olson <scott@solson.me> | 2016-02-18T12·59-0600 |
---|---|---|
committer | Scott Olson <scott@solson.me> | 2016-02-18T12·59-0600 |
commit | 60ba98242f7c976e4e14113d28bced03b32db4f5 (patch) | |
tree | 6424c6bddcb75801002fcaaf4708216fc484bf20 /nix-repl.cc | |
parent | 64080d26fe9364bc0ea0893f357386ed3121878f (diff) |
Fix recognition of REPL commands.
Diffstat (limited to 'nix-repl.cc')
-rw-r--r-- | nix-repl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nix-repl.cc b/nix-repl.cc index 8d2fbd919c9d..e52c3b257a7f 100644 --- a/nix-repl.cc +++ b/nix-repl.cc @@ -286,7 +286,7 @@ bool NixRepl::processLine(string line) string command, arg; if (line[0] == ':') { - size_t p = line.find(' '); + size_t p = line.find_first_of(" \n\r\t"); command = string(line, 0, p); if (p != string::npos) arg = removeWhitespace(string(line, p)); } else { |