aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg/reply.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msg/reply.go')
-rw-r--r--commands/msg/reply.go14
1 files changed, 6 insertions, 8 deletions
diff --git a/commands/msg/reply.go b/commands/msg/reply.go
index 2654514e..aeb186f8 100644
--- a/commands/msg/reply.go
+++ b/commands/msg/reply.go
@@ -212,11 +212,11 @@ func (r reply) Execute(args []string) error {
return nil
}
- if r.Quote {
- if r.Template == "" {
- r.Template = config.Templates.QuotedReply
- }
+ if r.Quote && r.Template == "" {
+ r.Template = config.Templates.QuotedReply
+ }
+ if r.Template != "" {
var fetchBodyPart func([]int, func(io.Reader))
if isMsgViewer {
@@ -229,7 +229,7 @@ func (r reply) Execute(args []string) error {
if crypto.IsEncrypted(msg.BodyStructure) && !isMsgViewer {
return fmt.Errorf("message is encrypted. " +
- "can only quote reply from the message viewer")
+ "can only include reply from the message viewer")
}
part := getMessagePart(msg, widget)
@@ -259,9 +259,7 @@ func (r reply) Execute(args []string) error {
return nil
} else {
- if r.Template == "" {
- r.Template = config.Templates.NewMessage
- }
+ r.Template = config.Templates.NewMessage
return addTab()
}
}