nix run: Flush the progress bar before starting the command
This commit is contained in:
parent
05d68a6e23
commit
c8235c5313
5 changed files with 28 additions and 19 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#include "shared.hh"
|
||||
#include "eval.hh"
|
||||
#include "attr-path.hh"
|
||||
#include "progress-bar.hh"
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
|
@ -65,6 +66,8 @@ struct CmdEdit : InstallablesCommand
|
|||
|
||||
args.push_back(filename);
|
||||
|
||||
stopProgressBar();
|
||||
|
||||
execvp(editor.c_str(), stringsToCharPtrs(args).data());
|
||||
|
||||
throw SysError("cannot run editor '%s'", editor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue