mirror of
https://github.com/NixOS/nix
synced 2025-07-04 23:51: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:
parent
88e6b7d6b2
commit
375df6c086
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue