diff options
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 { |