1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-02-03 13:21:56 +02:00

hide secondary view when escaping patch building panel

This commit is contained in:
Jesse Duffield 2020-08-23 13:49:05 +10:00
parent 262ff24c5b
commit 59d61f00a6

View File

@ -102,9 +102,10 @@ func (gui *Gui) handleEscapePatchBuildingPanel() error {
if gui.currentContext().GetKey() == gui.Contexts.PatchBuilding.Context.GetKey() { if gui.currentContext().GetKey() == gui.Contexts.PatchBuilding.Context.GetKey() {
return gui.switchContext(gui.Contexts.CommitFiles.Context) return gui.switchContext(gui.Contexts.CommitFiles.Context)
} else {
// need to re-focus in case the secondary view should now be hidden
return gui.currentContext().HandleFocus()
} }
return nil
} }
func (gui *Gui) secondaryPatchPanelUpdateOpts() *viewUpdateOpts { func (gui *Gui) secondaryPatchPanelUpdateOpts() *viewUpdateOpts {