diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-20 08:52:51 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | eb5e54e9fd649e556d8c639ff87fedbfe02ff8e9 (patch) | |
tree | 7e84f0e734ce3cd0f35212d0eeb9ddbbb9cec593 /pkg/gui/files_panel.go | |
parent | 99707a527ded1ede1c7094af07343f014f28fbde (diff) |
use interface for panel state rather than pointer
Diffstat (limited to 'pkg/gui/files_panel.go')
-rw-r--r-- | pkg/gui/files_panel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/files_panel.go b/pkg/gui/files_panel.go index 0015c563c..929f54f6b 100644 --- a/pkg/gui/files_panel.go +++ b/pkg/gui/files_panel.go @@ -420,7 +420,7 @@ func (gui *Gui) refreshStateFiles() error { } } - gui.refreshSelectedLine(&gui.State.Panels.Files.SelectedLine, len(gui.State.Files)) + gui.refreshSelectedLine(gui.State.Panels.Files, len(gui.State.Files)) return nil } |