From c8235c531355d612d48f633f8a6ace5fcd97f5fe Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 29 Aug 2017 15:13:30 +0200 Subject: nix run: Flush the progress bar before starting the command --- src/nix/edit.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/nix/edit.cc') diff --git a/src/nix/edit.cc b/src/nix/edit.cc index 5cf9c7200d03..fd07913bcfa2 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 @@ -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); -- cgit 1.4.1