diff options
author | Koni Marti <koni.marti@gmail.com> | 2022-07-27 23:39:16 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-07-17 10:24:10 +0200 |
commit | 11e5390fa0acbcc609ca177777548dd2d725afbc (patch) | |
tree | f5474f504bc8e36b2356740a5b9e581db6bb4a83 /commands | |
parent | cf061e1b0b536da1cc401c19af456ea373c47e6e (diff) | |
download | aerc-11e5390fa0acbcc609ca177777548dd2d725afbc.tar.gz |
compose: implement embedded headers in editor
Implement embedded header mode in the composer widget. To activate it,
use set [compose].edit-headers=true in aerc.conf.
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
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) } |