mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
repl: Fix value printing corruption
The resume call would get some non-flushed(?) data. Extending the pause to include the newline makes the complete flush part of the pause.
This commit is contained in:
parent
49d8ee5359
commit
880489051a
1 changed files with 2 additions and 0 deletions
|
@ -694,8 +694,10 @@ ProcessLineResult NixRepl::processLine(std::string line)
|
||||||
} else {
|
} else {
|
||||||
Value v;
|
Value v;
|
||||||
evalString(line, v);
|
evalString(line, v);
|
||||||
|
logger->pause();
|
||||||
printValue(std::cout, v, 1);
|
printValue(std::cout, v, 1);
|
||||||
std::cout << std::endl;
|
std::cout << std::endl;
|
||||||
|
logger->resume();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue