aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg/forward.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-12-20 17:05:43 +0100
committerRobin Jarry <robin@jarry.cc>2023-01-04 22:57:31 +0100
commitae675b491d2b55a06588e8ab4ce8205aaae796c8 (patch)
tree383920e34344ea3456162fb74cc180bfb33dec83 /commands/msg/forward.go
parent2a290cf1ed6113f0d01eea3f2cff446339bed0ce (diff)
downloadaerc-ae675b491d2b55a06588e8ab4ce8205aaae796c8.tar.gz
templates: change fields as lazy functions
No need to pre-render fields that are not necessarily accessed in templates. Change fields to functions that are evaluated only when required. Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'commands/msg/forward.go')
-rw-r--r--commands/msg/forward.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/msg/forward.go b/commands/msg/forward.go
index 9a4f3d41..90c32ec2 100644
--- a/commands/msg/forward.go
+++ b/commands/msg/forward.go
@@ -101,7 +101,7 @@ func (forward) Execute(aerc *widgets.Aerc, args []string) error {
addTab := func() (*widgets.Composer, error) {
composer, err := widgets.NewComposer(aerc, acct,
- acct.AccountConfig(), acct.Worker(), template, h, original)
+ acct.AccountConfig(), acct.Worker(), template, h, &original)
if err != nil {
aerc.PushError("Error: " + err.Error())
return nil, err