1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

use generics to DRY up context code

This commit is contained in:
Jesse Duffield
2022-03-19 09:31:52 +11:00
parent 4b56d428ff
commit d93fef4c61
31 changed files with 117 additions and 364 deletions

View File

@ -588,7 +588,7 @@ func (self *LocalCommitsController) gotoBottom() error {
}
}
self.context().SetSelectedLineIdx(self.context().GetItemsLength() - 1)
self.context().SetSelectedLineIdx(self.context().Len() - 1)
return nil
}