header: remove trailing colon in header field
With this commit trailing colons in the :header command's field are removed to prevent double-colon-headers from being sent. Signed-off-by: Moritz Poldrack <git@moritz.sh> Acked-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
parent
7fe7fe4ea8
commit
3c08b8e6a9
1 changed files with 2 additions and 0 deletions
|
@ -56,6 +56,8 @@ func (Header) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
|
|
||||||
composer, _ := aerc.SelectedTab().(*widgets.Composer)
|
composer, _ := aerc.SelectedTab().(*widgets.Composer)
|
||||||
|
|
||||||
|
args[optind] = strings.TrimRight(args[optind], ":")
|
||||||
|
|
||||||
value := strings.Join(args[optind+1:], " ")
|
value := strings.Join(args[optind+1:], " ")
|
||||||
|
|
||||||
if !force {
|
if !force {
|
||||||
|
|
Loading…
Reference in a new issue