mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +02:00
Keep side context in context stack when pushing a main context
This fixes accordion mode for the commit files panel. When entering a file, the commit files panel should stay expanded.
This commit is contained in:
parent
40a29fd622
commit
723504a290
4 changed files with 7 additions and 4 deletions
|
@ -38,7 +38,7 @@ func (self *PatchBuildingHelper) ValidateNormalWorkingTreeState() (bool, error)
|
|||
|
||||
// takes us from the patch building panel back to the commit files panel
|
||||
func (self *PatchBuildingHelper) Escape() error {
|
||||
return self.c.PushContext(self.contexts.CommitFiles)
|
||||
return self.c.PopContext()
|
||||
}
|
||||
|
||||
// kills the custom patch and returns us back to the commit files panel if needed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue