~sircmpwn/aerc

Make mimetype check consistent across cases v1 PROPOSED

y0ast: 1
 Make mimetype check consistent across cases

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/aerc/patches/13827/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] Make mimetype check consistent across cases Export this patch

---
Implemented as discussed on IRC

 widgets/msgviewer.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go
index 587959b..6c69577 100644
--- a/widgets/msgviewer.go
+++ b/widgets/msgviewer.go
@@ -586,7 +586,7 @@ func (pv *PartViewer) attemptCopy() {
	}
	go func() {
		pv.writeMailHeaders()
		if pv.part.MIMEType == "text" {
		if strings.EqualFold(pv.part.MIMEType, "text") {
			// if the content is plain we can strip ansi control chars
			pv.copySourceToSinkStripAnsi()
		} else {
-- 
2.28.0
Merged, thanks.

Cheers,
Reto