From eb5e54e9fd649e556d8c639ff87fedbfe02ff8e9 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Thu, 20 Aug 2020 08:52:51 +1000 Subject: use interface for panel state rather than pointer --- pkg/gui/layout.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/gui/layout.go') 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 -- cgit v1.2.3