From faf218f4650edbd0a711a3304cc5549180e9dfdc Mon Sep 17 00:00:00 2001 From: Mark Kopenga Date: Thu, 16 Aug 2018 11:31:50 +0200 Subject: Fixed comments from jesseduffield on issue #137 --- pkg/gui/stash_panel.go | 2 +- pkg/gui/view_helpers.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'pkg') 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(), }, ) -- cgit v1.2.3