aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-03-04 00:15:57 +0100
committerRobin Jarry <robin@jarry.cc>2023-03-08 00:43:00 +0100
commit573b3266afcf6dc52c82ffa238f5d9b82ee11cf7 (patch)
treea8a3031183f3d444957bd64ab0627fd879bac62e /lib
parent66c532f859dd477ce57e222107c6b371e66064b8 (diff)
downloadaerc-573b3266afcf6dc52c82ffa238f5d9b82ee11cf7.tar.gz
templates: reverse args order for .Style
In preparation for .StyleMatch put the content first, followed by the style name. Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/state/templates.go2
1 files changed, 1 insertions, 1 deletions
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)