mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-17 00:18:05 +02:00
only return focus if we already have it
This commit is contained in:
@ -82,9 +82,13 @@ func (gui *Gui) handleEscapePatchBuildingPanel() error {
|
||||
gui.GitCommand.PatchManager.Reset()
|
||||
}
|
||||
|
||||
if gui.currentContext().GetKey() == gui.Contexts.PatchBuilding.Context.GetKey() {
|
||||
return gui.switchContext(gui.Contexts.CommitFiles.Context)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (gui *Gui) refreshSecondaryPatchPanel() error {
|
||||
// TODO: swap out for secondaryPatchPanelUpdateOpts
|
||||
|
||||
|
Reference in New Issue
Block a user