1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-17 00:18:05 +02:00

use suspense rather than close the gui when switching to a subprocess

This commit is contained in:
Jesse Duffield
2021-04-02 21:30:39 +11:00
parent 0b42437052
commit 69e9f6d29d
9 changed files with 49 additions and 65 deletions

View File

@ -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