mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-06-20 01:19:23 +02:00
When doing ctrl-f, and the resulting commit is not visible, scroll it into view (#5182)
This used to work in the last version, but broke with efd4298b5e
(#5134).
This commit is contained in:
@@ -137,6 +137,7 @@ func (self *FixupHelper) HandleFindBaseCommitForFixupPress() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
self.c.Contexts().LocalCommits.SetSelection(index)
|
self.c.Contexts().LocalCommits.SetSelection(index)
|
||||||
|
self.c.Contexts().LocalCommits.FocusLine(true)
|
||||||
self.c.Context().Push(self.c.Contexts().LocalCommits, types.OnFocusOpts{})
|
self.c.Context().Push(self.c.Contexts().LocalCommits, types.OnFocusOpts{})
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user