diff options
author | Robin Jarry <robin@jarry.cc> | 2023-09-05 10:35:30 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-09-05 20:46:19 +0200 |
commit | 39fee6ca17fa0df8ecc25925659c4f9785c769fc (patch) | |
tree | 6c55a2089e011503c6e6b3a9e0c662ababe0b9cc /config/viewer.go | |
parent | 5991eae60b7f2de6c3377298a0ba7c2df33e02cd (diff) | |
download | aerc-39fee6ca17fa0df8ecc25925659c4f9785c769fc.tar.gz |
compose: delete empty headers
When [compose].edit-headers=true and emptying a header in the text
editor (not deleting it, only deleting its contents), the operation is
ignored and the header is preserved as-is.
Delete the header after exiting the text editor if the header is empty
or not present. Make sure not to add empty headers.
Fixes: 11e5390fa0ac ("compose: implement embedded headers in editor")
Reported-by: Inwit <inwit@sindominio.net>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Inwit <inwit@sindominio.net>
Diffstat (limited to 'config/viewer.go')
0 files changed, 0 insertions, 0 deletions