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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user