aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/aerc-templates.7.scd2
-rw-r--r--lib/state/templates.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/aerc-templates.7.scd b/doc/aerc-templates.7.scd
index 8a2a3381..7d77cd0b 100644
--- a/doc/aerc-templates.7.scd
+++ b/doc/aerc-templates.7.scd
@@ -374,7 +374,7 @@ aerc provides the following additional functions:
Apply a user-defined style (see *aerc-stylesets*(7)) to a string.
```
- {{.Style "red" .Account}}
+ {{.Style .Account "red"}}
```
*version*
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)