about summary refs log tree commit diff
path: root/src/nix/edit.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-08-29T13·13+0200
committerEelco Dolstra <edolstra@gmail.com>2017-08-29T13·13+0200
commitc8235c531355d612d48f633f8a6ace5fcd97f5fe (patch)
treec54d398380ef786e6895b5427774bbd750566b31 /src/nix/edit.cc
parent05d68a6e23127e490193599f75489006830b302c (diff)
nix run: Flush the progress bar before starting the command
Diffstat (limited to 'src/nix/edit.cc')
-rw-r--r--src/nix/edit.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nix/edit.cc b/src/nix/edit.cc
index 5cf9c7200d..fd07913bcf 100644
--- a/src/nix/edit.cc
+++ b/src/nix/edit.cc
@@ -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);