diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-02 19:20:40 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 19:34:32 +1000 |
commit | 798d3e2d54e828f25ed4aadcefff11593fa23e10 (patch) | |
tree | 3b68eedd78e13836da8d7b8c46c5862c458f02a0 /pkg/gui/side_window.go | |
parent | e8f99c3326f543b713cafb6420a5b9c3c9b4d50c (diff) |
get rid of these positively ghastly method signatures
Diffstat (limited to 'pkg/gui/side_window.go')
-rw-r--r-- | pkg/gui/side_window.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pkg/gui/side_window.go b/pkg/gui/side_window.go index fc5842dea..be55942cd 100644 --- a/pkg/gui/side_window.go +++ b/pkg/gui/side_window.go @@ -1,7 +1,5 @@ package gui -import "github.com/jesseduffield/gocui" - func (gui *Gui) nextSideWindow() error { windows := gui.getCyclableWindows() currentWindow := gui.currentWindow() @@ -54,8 +52,8 @@ func (gui *Gui) previousSideWindow() error { return gui.pushContextWithView(viewName) } -func (gui *Gui) goToSideWindow(sideViewName string) func(g *gocui.Gui, v *gocui.View) error { - return func(g *gocui.Gui, v *gocui.View) error { +func (gui *Gui) goToSideWindow(sideViewName string) func() error { + return func() error { return gui.pushContextWithView(sideViewName) } } |