diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-04-16 15:27:56 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-04-16 17:29:17 +1000 |
commit | e68093fe9974296fe5afb22ec8e0adb1eb2f4316 (patch) | |
tree | 040dbfdb4dc438271d9f3febae410d25698f1a38 /pkg/gui/context/viewport_list_context_trait.go | |
parent | b838b74801102b27782cc20c7396279630e77fba (diff) |
add scrollbars
Diffstat (limited to 'pkg/gui/context/viewport_list_context_trait.go')
-rw-r--r-- | pkg/gui/context/viewport_list_context_trait.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/context/viewport_list_context_trait.go b/pkg/gui/context/viewport_list_context_trait.go index ab9b04fb8..b89dea832 100644 --- a/pkg/gui/context/viewport_list_context_trait.go +++ b/pkg/gui/context/viewport_list_context_trait.go @@ -15,8 +15,8 @@ type ViewportListContextTrait struct { func (self *ViewportListContextTrait) FocusLine() { self.ListContextTrait.FocusLine() - min, max := self.GetViewTrait().ViewPortYBounds() - displayStrings := self.ListContextTrait.getDisplayStrings(min, max) + startIdx, length := self.GetViewTrait().ViewPortYBounds() + displayStrings := self.ListContextTrait.getDisplayStrings(startIdx, length) content := utils.RenderDisplayStrings(displayStrings) self.GetViewTrait().SetViewPortContent(content) } |