1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

repl: Fix :print corruption

See preceding commits.

(cherry picked from commit 1e1c587073)
This commit is contained in:
Robert Hensing 2025-03-04 19:10:55 +01:00 committed by Mergify
parent ac3fc8876c
commit dc6a936d97

View file

@ -587,6 +587,7 @@ ProcessLineResult NixRepl::processLine(std::string line)
else if (command == ":p" || command == ":print") {
Value v;
evalString(arg, v);
auto suspension = logger->suspend();
if (v.type() == nString) {
std::cout << v.string_view();
} else {