From 573b3266afcf6dc52c82ffa238f5d9b82ee11cf7 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Sat, 4 Mar 2023 00:15:57 +0100 Subject: templates: reverse args order for .Style In preparation for .StyleMatch put the content first, followed by the style name. Signed-off-by: Robin Jarry Acked-by: Tim Culverhouse --- lib/state/templates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/state') diff --git a/lib/state/templates.go b/lib/state/templates.go index b5a5ee05..1e8bad00 100644 --- a/lib/state/templates.go +++ b/lib/state/templates.go @@ -467,7 +467,7 @@ func (d *TemplateData) PendingKeys() string { return config.FormatKeyStrokes(d.pendingKeys) } -func (d *TemplateData) Style(name string, content string) string { +func (d *TemplateData) Style(content, name string) string { cfg := config.Ui.ForAccount(d.Account()) style := cfg.GetUserStyle(name) return parse.ApplyStyle(style, content) -- cgit