Make '>' first jump to the beginning of the branch, and only then to the first commit

This commit is contained in:
Stefan Haller 2025-05-08 15:37:35 +02:00
parent b0f6e68211
commit 5e712ed87d
5 changed files with 43 additions and 1 deletions

View file

@ -138,7 +138,9 @@ func (self *ListController) HandleGotoTop() error {
}
func (self *ListController) HandleGotoBottom() error {
return self.handleLineChange(self.context.GetList().Len())
bottomIdx := self.context.IndexForGotoBottom()
change := bottomIdx - self.context.GetList().GetSelectedLineIdx()
return self.handleLineChange(change)
}
func (self *ListController) HandleToggleRangeSelect() error {