1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-04 15:31:47 +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.

(cherry picked from commit 880489051a)
This commit is contained in:
Robert Hensing 2025-03-04 18:31:50 +01:00 committed by Mergify
parent 88e6b7d6b2
commit 375df6c086

View file

@ -694,8 +694,10 @@ ProcessLineResult NixRepl::processLine(std::string line)
} else {
Value v;
evalString(line, v);
logger->pause();
printValue(std::cout, v, 1);
std::cout << std::endl;
logger->resume();
}
}