Skip to content

Commit 1e1c587

Browse files
committed
repl: Fix :print corruption
See preceding commits.
1 parent 30694b5 commit 1e1c587

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcmd/repl.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ ProcessLineResult NixRepl::processLine(std::string line)
587587
else if (command == ":p" || command == ":print") {
588588
Value v;
589589
evalString(arg, v);
590+
auto suspension = logger->suspend();
590591
if (v.type() == nString) {
591592
std::cout << v.string_view();
592593
} else {

0 commit comments

Comments
 (0)