mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 16:16:16 +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;
|
string command, arg;
|
||||||
|
|
||||||
if (line[0] == ':') {
|
if (line[0] == ':') {
|
||||||
size_t p = line.find(' ');
|
size_t p = line.find_first_of(" \n\r\t");
|
||||||
command = string(line, 0, p);
|
command = string(line, 0, p);
|
||||||
if (p != string::npos) arg = removeWhitespace(string(line, p));
|
if (p != string::npos) arg = removeWhitespace(string(line, p));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue