summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/local_commits_controller.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-03-19 09:31:52 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-19 12:12:57 +1100
commitd93fef4c61db20dd9e2bb535c2fbb742cdbed60a (patch)
tree0e065ab7f334ea44b4597a79f6f8e36a018f2a15 /pkg/gui/controllers/local_commits_controller.go
parent4b56d428ffda44cf433d7cfdd83ea99417ec3e86 (diff)
use generics to DRY up context code
Diffstat (limited to 'pkg/gui/controllers/local_commits_controller.go')
-rw-r--r--pkg/gui/controllers/local_commits_controller.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/controllers/local_commits_controller.go b/pkg/gui/controllers/local_commits_controller.go
index b54cfa3c0..d45e3ed56 100644
--- a/pkg/gui/controllers/local_commits_controller.go
+++ b/pkg/gui/controllers/local_commits_controller.go
@@ -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
}