summaryrefslogtreecommitdiffstats
path: root/pkg/gui/stash_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-15 17:23:16 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-15 18:01:43 +1000
commit9b7a6934b333755d9408aca5eeb48678f8d98ebb (patch)
treec2ee77cb31f5281473de71591fcf09383d7c7149 /pkg/gui/stash_panel.go
parent15229bbdab5d99ce7f390a7e215a572ab155a5ac (diff)
more removing of g
Diffstat (limited to 'pkg/gui/stash_panel.go')
-rw-r--r--pkg/gui/stash_panel.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/gui/stash_panel.go b/pkg/gui/stash_panel.go
index 3f0536bfd..f364478b4 100644
--- a/pkg/gui/stash_panel.go
+++ b/pkg/gui/stash_panel.go
@@ -69,7 +69,7 @@ func (gui *Gui) handleStashApply(g *gocui.Gui, v *gocui.View) error {
skipStashWarning := gui.Config.GetUserConfig().GetBool("gui.skipStashWarning")
apply := func() error {
- return gui.stashDo(g, v, "apply")
+ return gui.stashDo("apply")
}
if skipStashWarning {
@@ -91,7 +91,7 @@ func (gui *Gui) handleStashPop(g *gocui.Gui, v *gocui.View) error {
skipStashWarning := gui.Config.GetUserConfig().GetBool("gui.skipStashWarning")
pop := func() error {
- return gui.stashDo(g, v, "pop")
+ return gui.stashDo("pop")
}
if skipStashWarning {
@@ -116,12 +116,12 @@ func (gui *Gui) handleStashDrop(g *gocui.Gui, v *gocui.View) error {
title: gui.Tr.SLocalize("StashDrop"),
prompt: gui.Tr.SLocalize("SureDropStashEntry"),
handleConfirm: func() error {
- return gui.stashDo(g, v, "drop")
+ return gui.stashDo("drop")
},
})
}
-func (gui *Gui) stashDo(g *gocui.Gui, v *gocui.View, method string) error {
+func (gui *Gui) stashDo(method string) error {
stashEntry := gui.getSelectedStashEntry()
if stashEntry == nil {
errorMessage := gui.Tr.TemplateLocalize(