summaryrefslogtreecommitdiffstats
path: root/pkg/gui/layout.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-20 08:52:51 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commiteb5e54e9fd649e556d8c639ff87fedbfe02ff8e9 (patch)
tree7e84f0e734ce3cd0f35212d0eeb9ddbbb9cec593 /pkg/gui/layout.go
parent99707a527ded1ede1c7094af07343f014f28fbde (diff)
use interface for panel state rather than pointer
Diffstat (limited to 'pkg/gui/layout.go')
-rw-r--r--pkg/gui/layout.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/layout.go b/pkg/gui/layout.go
index ccda11ac6..0c1a6d07a 100644
--- a/pkg/gui/layout.go
+++ b/pkg/gui/layout.go
@@ -309,7 +309,7 @@ func (gui *Gui) layout(g *gocui.Gui) error {
continue
}
// check if the selected line is now out of view and if so refocus it
- listContextState.view.FocusPoint(0, *listContextState.listContext.GetSelectedLineIdxPtr())
+ listContextState.view.FocusPoint(0, listContextState.listContext.GetPanelState().GetSelectedLineIdx())
listContextState.view.SelBgColor = theme.GocuiSelectedLineBgColor