forked from Mirror/wren
Don't try to run an empty line in the REPL.
This commit is contained in:
@ -90,8 +90,12 @@ static int runRepl(WrenVM* vm)
|
||||
return 0;
|
||||
}
|
||||
|
||||
// TODO: Handle failure.
|
||||
wrenInterpret(vm, "Prompt", line);
|
||||
// Do nothing if we received an empty line.
|
||||
if (strcmp(line, "\n") != 0)
|
||||
{
|
||||
// TODO: Handle failure.
|
||||
wrenInterpret(vm, "Prompt", line);
|
||||
}
|
||||
|
||||
free(line);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user