mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-07 11:26:21 +03:00
WIP After going straight to patch building from main view, esc goes all the way back out
I *think* I like it better this way, but it needs more testing.
This commit is contained in:
@@ -44,7 +44,11 @@ func (self *PatchBuildingHelper) ShowHunkStagingHint() {
|
||||
|
||||
// takes us from the patch building panel back to the commit files panel
|
||||
func (self *PatchBuildingHelper) Escape() {
|
||||
self.c.Context().Pop()
|
||||
if parentCtx := self.c.Contexts().CustomPatchBuilder.GetParentContext(); parentCtx != nil {
|
||||
self.c.Context().Push(parentCtx, types.OnFocusOpts{})
|
||||
} else {
|
||||
self.c.Context().Pop()
|
||||
}
|
||||
}
|
||||
|
||||
// kills the custom patch and returns us back to the commit files panel if needed
|
||||
|
||||
Reference in New Issue
Block a user