aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-01-27 09:16:54 +0100
committerRobin Jarry <robin@jarry.cc>2022-01-27 09:16:54 +0100
commit7edcc9f79409b077b69fb9be0b520c7de0a63464 (patch)
treea8c82d97ec04193dc09ca3c76de587b88137c5b4
parent7c945149a693adf45e0fe05eb3896d7eeb418bd7 (diff)
downloadaerc-7edcc9f79409b077b69fb9be0b520c7de0a63464.tar.gz
aerc-7edcc9f79409b077b69fb9be0b520c7de0a63464.zip
reply: use new-message template for non-quoted replies
Unless a template is specified with reply -T, use the new-message template for non-quoted replies. Fixes: 877a94f5d9a7 ("compose: add default template for new messages") Signed-off-by: Robin Jarry <robin@jarry.cc>
-rw-r--r--commands/msg/reply.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/msg/reply.go b/commands/msg/reply.go
index 8b21995c..a7768372 100644
--- a/commands/msg/reply.go
+++ b/commands/msg/reply.go
@@ -221,6 +221,9 @@ func (reply) Execute(aerc *widgets.Aerc, args []string) error {
})
return nil
} else {
+ if template == "" {
+ template = aerc.Config().Templates.NewMessage
+ }
return addTab()
}
}