mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-01 13:51:06 +03: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