diff options
author | Lars Mühmel <larsmuehmel@web.de> | 2020-07-17 17:35:59 +0200 |
---|---|---|
committer | Lars Mühmel <larsmuehmel@web.de> | 2020-07-17 17:35:59 +0200 |
commit | bc73590151bff82b03077c34f0c5aa9f84c89e63 (patch) | |
tree | e0a8fe88ec10a52e5df98e4c21a6aef669e8488f | |
parent | 17f75f9cc4dd70e3e6de7e266ef2bd18a0da310b (diff) |
nix edit: call restoreSignals() before `execvp`-ing the $EDITOR
Currently resizing of the terminal doesn't play nicely with
nix edit when using kakoune as the editor, as it relies on the
SIGWINCH signal which is trapped by nix. How this is not a problem
with e.g. vim is beyond me.
Virtually all other exec* calls are following a call to
restoreSignals(). This commit adds this behavior to nix edit
as well.
-rw-r--r-- | src/nix/edit.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix/edit.cc b/src/nix/edit.cc index dc9775635..378a3739c 100644 --- a/src/nix/edit.cc +++ b/src/nix/edit.cc @@ -45,6 +45,7 @@ struct CmdEdit : InstallableCommand auto args = editorFor(pos); + restoreSignals(); execvp(args.front().c_str(), stringsToCharPtrs(args).data()); std::string command; |