mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
repl: Fix :print corruption
See preceding commits.
(cherry picked from commit 1e1c587073
)
This commit is contained in:
parent
ac3fc8876c
commit
dc6a936d97
1 changed files with 1 additions and 0 deletions
|
@ -587,6 +587,7 @@ ProcessLineResult NixRepl::processLine(std::string line)
|
|||
else if (command == ":p" || command == ":print") {
|
||||
Value v;
|
||||
evalString(arg, v);
|
||||
auto suspension = logger->suspend();
|
||||
if (v.type() == nString) {
|
||||
std::cout << v.string_view();
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue