From 4c514ce4d15fd14cad528cf426bc3f853efe7f64 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Wed, 5 Jul 2023 23:10:39 +0200 Subject: compose: allow changing edit-headers on the fly Add -e|-E flags to all compose commands to allow switching between edit-headers = true/false without restarting aerc. Signed-off-by: Robin Jarry Tested-by: Bence Ferdinandy Tested-by: Koni Marti --- commands/msg/reply.go | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'commands/msg/reply.go') diff --git a/commands/msg/reply.go b/commands/msg/reply.go index 8cdb50d4..b2a61a80 100644 --- a/commands/msg/reply.go +++ b/commands/msg/reply.go @@ -38,12 +38,12 @@ func (reply) Complete(aerc *widgets.Aerc, args []string) []string { } func (reply) Execute(aerc *widgets.Aerc, args []string) error { - opts, optind, err := getopt.Getopts(args, "acqT:") + opts, optind, err := getopt.Getopts(args, "acqT:eE") if err != nil { return err } if optind != len(args) { - return errors.New("Usage: reply [-acq -T