Skip to content

Commit 8804890

Browse files
committed
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.
1 parent 49d8ee5 commit 8804890

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libcmd/repl.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,8 +694,10 @@ ProcessLineResult NixRepl::processLine(std::string line)
694694
} else {
695695
Value v;
696696
evalString(line, v);
697+
logger->pause();
697698
printValue(std::cout, v, 1);
698699
std::cout << std::endl;
700+
logger->resume();
699701
}
700702
}
701703

0 commit comments

Comments
 (0)