mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-11 00:36:20 +02:00
Fix recognition of REPL commands.
This commit is contained in:
parent
64080d26fe
commit
60ba98242f
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue