diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-03-23 22:05:25 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-04-30 13:19:53 +1000 |
commit | f8c9ce33c2cdbefac27e6af409a10aa539d4037a (patch) | |
tree | e9f8dbb848baf6ca5681864ce7d19a0dd490f3e0 /pkg/gui/layout.go | |
parent | 71753770ad6da851b6584b6868fd03a0dba6e5c8 (diff) |
move more actions into controller
Diffstat (limited to 'pkg/gui/layout.go')
-rw-r--r-- | pkg/gui/layout.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/layout.go b/pkg/gui/layout.go index c8a89d3cb..2f51b7432 100644 --- a/pkg/gui/layout.go +++ b/pkg/gui/layout.go @@ -124,7 +124,7 @@ func (gui *Gui) layout(g *gocui.Gui) error { gui.State.ViewsSetup = true } - for _, listContext := range gui.getListContexts() { + for _, listContext := range gui.c.Context().AllList() { view, err := gui.g.View(listContext.GetViewName()) if err != nil { continue @@ -138,7 +138,7 @@ func (gui *Gui) layout(g *gocui.Gui) error { view.SetOnSelectItem(gui.onSelectItemWrapper(listContext.OnSearchSelect)) } - for _, context := range gui.getPatchExplorerContexts() { + for _, context := range gui.c.Context().AllPatchExplorer() { context := context context.GetView().SetOnSelectItem(gui.onSelectItemWrapper( func(selectedLineIdx int) error { |