1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-07 22:02:56 +03:00

Read all lines from task when jumping to bottom

This commit is contained in:
Stefan Haller
2025-03-25 15:17:56 +01:00
parent 60887eddd0
commit 2b399a3c36
3 changed files with 40 additions and 11 deletions

View File

@@ -95,7 +95,15 @@ func (self *ViewSelectionController) handleGotoTop() error {
}
func (self *ViewSelectionController) handleGotoBottom() error {
v := self.Context().GetView()
self.handleLineChange(v.ViewLinesHeight())
if manager := self.c.GetViewBufferManagerForView(self.context.GetView()); manager != nil {
manager.ReadToEnd(func() {
self.c.OnUIThread(func() error {
v := self.Context().GetView()
self.handleLineChange(v.ViewLinesHeight())
return nil
})
})
}
return nil
}