1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-08 22:42:18 +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:
Stefan Haller
2025-03-29 16:52:55 +01:00
parent e557c73720
commit 075b5fad42
2 changed files with 6 additions and 1 deletions

View File

@@ -83,6 +83,7 @@ func (self *SwitchToDiffFilesController) GetOnClickFocusedMainView() func(mainVi
context.GetViewTrait().FocusPoint(
context.ModelIndexToViewIndex(idx))
node = context.GetSelected()
self.c.Contexts().CustomPatchBuilder.SetParentContext(self.context)
return self.c.Helpers().CommitFiles.EnterCommitFile(node, types.OnFocusOpts{ClickedWindowName: "main", ClickedViewLineIdx: line, ClickedViewRealLineIdx: line})
}
}