From 375df6c0865150d349b3b4c9d35e9607923293c3 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Tue, 4 Mar 2025 18:31:50 +0100 Subject: [PATCH] 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 880489051a2b4d5cc83d958192c0998de8307b6c) --- src/libcmd/repl.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc index e2aa99cfc..340c20450 100644 --- a/src/libcmd/repl.cc +++ b/src/libcmd/repl.cc @@ -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(); } }