diff options
author | Robin Jarry <robin@jarry.cc> | 2023-04-26 23:17:10 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-04-27 14:35:46 +0200 |
commit | b3c1b693184d0d03171339c883bb2ecb4d983abc (patch) | |
tree | c707c849c84fb09c0633f072ddbdc70f14df8b98 /widgets/compose.go | |
parent | 9a20640ff6e315dc43c247e295d1325f08ee3ca0 (diff) | |
download | aerc-b3c1b693184d0d03171339c883bb2ecb4d983abc.tar.gz |
compose: do not strip leading space from signature
Only strip the leading whitespace when a delimiter needs to be
prepended.
Fixes: bba715975690 ("compose: only add delimiter when a signature is defined")
Reported-by: Jason Cox <dev@jasoncarloscox.com>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Acked-by: Jason Cox <dev@jasoncarloscox.com>
Diffstat (limited to 'widgets/compose.go')
-rw-r--r-- | widgets/compose.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/compose.go b/widgets/compose.go index 3a960325..1e7450e9 100644 --- a/widgets/compose.go +++ b/widgets/compose.go @@ -538,8 +538,7 @@ func (c *Composer) AddSignature() { } else { signature = c.readSignatureFromFile() } - signature = bytes.TrimSpace(signature) - if len(signature) == 0 { + if len(bytes.TrimSpace(signature)) == 0 { return } signature = ensureSignatureDelimiter(signature) |