aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/spinner.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-02-23 22:17:36 +0100
committerRobin Jarry <robin@jarry.cc>2023-02-24 18:32:19 +0100
commitbba7159756908f092655bdf6db091daf9eb74f76 (patch)
tree4806e5e830397d8543f3a4a540a46308c68e11d6 /widgets/spinner.go
parentd15b533d4c9eb860b70496d7f44b661d2ab84977 (diff)
downloadaerc-bba7159756908f092655bdf6db091daf9eb74f76.tar.gz
compose: only add delimiter when a signature is defined
Inserting a solitary "-- " delimiter without any signature after it makes no sense. Skip the whole delimiter check if the signature is empty. Trim leading and trailing white space along the way. Fixes: a553b33ebcbd ("compose: ensure signature uses standard delimiter") Reported-by: Ben Cohen <ben@bencohen.net> Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Ben Cohen <ben@bencohen.net>
Diffstat (limited to 'widgets/spinner.go')
0 files changed, 0 insertions, 0 deletions