mirror of
https://github.com/NixOS/nix.git
synced 2024-11-28 01:32:33 +00:00
nix repl: Fix handling of multi-line expressions
This commit is contained in:
parent
7cf874c17d
commit
550e11f077
@ -212,7 +212,7 @@ void NixRepl::mainLoop(const std::vector<std::string> & files)
|
||||
try {
|
||||
if (!removeWhitespace(input).empty() && !processLine(input)) return;
|
||||
} catch (ParseError & e) {
|
||||
if (e.msg().find("unexpected $end") != std::string::npos) {
|
||||
if (e.msg().find("unexpected end of file") != std::string::npos) {
|
||||
// For parse errors on incomplete input, we continue waiting for the next line of
|
||||
// input without clearing the input so far.
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user