diff options
Diffstat (limited to 'commands')
-rw-r--r-- | commands/compose/cc-bcc.go | 4 | ||||
-rw-r--r-- | commands/compose/header.go | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/commands/compose/cc-bcc.go b/commands/compose/cc-bcc.go index 17e925e1..045f9092 100644 --- a/commands/compose/cc-bcc.go +++ b/commands/compose/cc-bcc.go @@ -29,9 +29,9 @@ func (CC) Execute(aerc *widgets.Aerc, args []string) error { switch args[0] { case "cc": - composer.AddEditor("Cc", addrs, true) + return composer.AddEditor("Cc", addrs, true) case "bcc": - composer.AddEditor("Bcc", addrs, true) + return composer.AddEditor("Bcc", addrs, true) } return nil diff --git a/commands/compose/header.go b/commands/compose/header.go index 46cc23b9..c512e341 100644 --- a/commands/compose/header.go +++ b/commands/compose/header.go @@ -72,7 +72,5 @@ func (Header) Execute(aerc *widgets.Aerc, args []string) error { } } - composer.AddEditor(args[optind], value, false) - - return nil + return composer.AddEditor(args[optind], value, false) } |