mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-06 03:53:59 +02:00
close commit message panel after returning from subprocess
This commit is contained in:
parent
a229547048
commit
44f1f22068
@ -16,8 +16,13 @@ func (gui *Gui) runSyncOrAsyncCommand(sub *exec.Cmd, err error) (bool, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return false, gui.surfaceError(err)
|
return false, gui.surfaceError(err)
|
||||||
}
|
}
|
||||||
if sub != nil {
|
if sub == nil {
|
||||||
return false, gui.runSubprocessWithSuspense(sub)
|
return true, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
err = gui.runSubprocessWithSuspense(sub)
|
||||||
|
if err != nil {
|
||||||
|
return false, err
|
||||||
}
|
}
|
||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
@ -36,12 +41,14 @@ func (gui *Gui) handleCommitConfirm() error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_ = gui.returnFromContext()
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
gui.clearEditorView(gui.Views.CommitMessage)
|
gui.clearEditorView(gui.Views.CommitMessage)
|
||||||
_ = gui.returnFromContext()
|
|
||||||
return gui.refreshSidePanels(refreshOptions{mode: ASYNC})
|
return gui.refreshSidePanels(refreshOptions{mode: ASYNC})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user