mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
Merge pull request #10618 from srhb/editor-pause-repl
nix repl: hide progress bar during :edit
This commit is contained in:
commit
4161f3cfea
1 changed files with 4 additions and 0 deletions
|
@ -506,6 +506,10 @@ ProcessLineResult NixRepl::processLine(std::string line)
|
||||||
auto editor = args.front();
|
auto editor = args.front();
|
||||||
args.pop_front();
|
args.pop_front();
|
||||||
|
|
||||||
|
// avoid garbling the editor with the progress bar
|
||||||
|
logger->pause();
|
||||||
|
Finally resume([&]() { logger->resume(); });
|
||||||
|
|
||||||
// runProgram redirects stdout to a StringSink,
|
// runProgram redirects stdout to a StringSink,
|
||||||
// using runProgram2 to allow editors to display their UI
|
// using runProgram2 to allow editors to display their UI
|
||||||
runProgram2(RunOptions { .program = editor, .lookupPath = true, .args = args });
|
runProgram2(RunOptions { .program = editor, .lookupPath = true, .args = args });
|
||||||
|
|
Loading…
Reference in a new issue