diff options
author | Mark Kopenga <mkopenga@gmail.com> | 2018-08-16 11:31:50 +0200 |
---|---|---|
committer | Mark Kopenga <mkopenga@gmail.com> | 2018-08-16 11:31:50 +0200 |
commit | faf218f4650edbd0a711a3304cc5549180e9dfdc (patch) | |
tree | 9f34a028699b3f8814366901192f28ca5b606930 | |
parent | 90746502df432ce88ed1b62e36414c2142322ff7 (diff) |
Fixed comments from jesseduffield on issue #137
-rw-r--r-- | pkg/gui/stash_panel.go | 2 | ||||
-rw-r--r-- | pkg/gui/view_helpers.go | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/pkg/gui/stash_panel.go b/pkg/gui/stash_panel.go index bc157f1be..0c323e254 100644 --- a/pkg/gui/stash_panel.go +++ b/pkg/gui/stash_panel.go @@ -77,7 +77,7 @@ func (gui *Gui) stashDo(g *gocui.Gui, v *gocui.View, method string) error { if stashEntry == nil { errorMessage := gui.Tr.TemplateLocalize( "NoStashTo", - map[string]interface{}{ + Teml{ "method": method, }, ) diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go index 0d215a337..95324ecde 100644 --- a/pkg/gui/view_helpers.go +++ b/pkg/gui/view_helpers.go @@ -31,7 +31,7 @@ func (gui *Gui) nextView(g *gocui.Gui, v *gocui.View) error { if i == len(cyclableViews)-1 { message := gui.Tr.TemplateLocalize( "IssntListOfViews", - map[string]interface{}{ + Teml{ "name": v.Name(), }, ) @@ -60,7 +60,7 @@ func (gui *Gui) previousView(g *gocui.Gui, v *gocui.View) error { if i == len(cyclableViews)-1 { message := gui.Tr.TemplateLocalize( "IssntListOfViews", - map[string]interface{}{ + Teml{ "name": v.Name(), }, ) @@ -119,7 +119,7 @@ func (gui *Gui) switchFocus(g *gocui.Gui, oldView, newView *gocui.View) error { oldView.Highlight = false message := gui.Tr.TemplateLocalize( "settingPreviewsViewTo", - map[string]interface{}{ + Teml{ "oldViewName": oldView.Name(), }, ) @@ -129,7 +129,7 @@ func (gui *Gui) switchFocus(g *gocui.Gui, oldView, newView *gocui.View) error { newView.Highlight = true message := gui.Tr.TemplateLocalize( "newFocusedViewIs", - map[string]interface{}{ + Teml{ "newFocusedView": newView.Name(), }, ) |