mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-04 10:34:55 +02:00
only return focus if we already have it
This commit is contained in:
parent
53da858c06
commit
4080e9b501
@ -82,7 +82,11 @@ func (gui *Gui) handleEscapePatchBuildingPanel() error {
|
|||||||
gui.GitCommand.PatchManager.Reset()
|
gui.GitCommand.PatchManager.Reset()
|
||||||
}
|
}
|
||||||
|
|
||||||
return gui.switchContext(gui.Contexts.CommitFiles.Context)
|
if gui.currentContext().GetKey() == gui.Contexts.PatchBuilding.Context.GetKey() {
|
||||||
|
return gui.switchContext(gui.Contexts.CommitFiles.Context)
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (gui *Gui) refreshSecondaryPatchPanel() error {
|
func (gui *Gui) refreshSecondaryPatchPanel() error {
|
||||||
|
Loading…
Reference in New Issue
Block a user