1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 23:11: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:
Robert Hensing 2025-03-04 18:31:50 +01:00
parent 49d8ee5359
commit 880489051a

View file

@ -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();
} }
} }