diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-02 21:30:39 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 19:34:32 +1000 |
commit | 69e9f6d29da5be2d6250444ee46b05c81d668d8e (patch) | |
tree | 9293828c293d715101b6a9e03da11bbf4017be6b /pkg/gui/custom_commands.go | |
parent | 0b424370524cbc95a5526545f17543a41badcab1 (diff) |
use suspense rather than close the gui when switching to a subprocess
Diffstat (limited to 'pkg/gui/custom_commands.go')
-rw-r--r-- | pkg/gui/custom_commands.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/gui/custom_commands.go b/pkg/gui/custom_commands.go index 1411ec34f..09af7065c 100644 --- a/pkg/gui/custom_commands.go +++ b/pkg/gui/custom_commands.go @@ -60,8 +60,7 @@ func (gui *Gui) handleCustomCommandKeybinding(customCommand config.CustomCommand } if customCommand.Subprocess { - gui.PrepareShellSubProcess(cmdStr) - return nil + return gui.runSubprocessWithSuspense(gui.OSCommand.PrepareShellSubProcess(cmdStr)) } loadingText := customCommand.LoadingText |