summary refs log tree commit diff stats
path: root/widgets
diff options
context:
space:
mode:
authorLuke Drummond <luke.drummond@codeplay.com>2020-01-17 16:32:19 +0000
committerDrew DeVault <sir@cmpwn.com>2020-01-20 09:08:38 -0500
commitef029aa26359b6524fc12ccc9f4c43b59d8b8f48 (patch)
treee967fa4f96cf06d7465d286eaa9f2bcd87587f4c /widgets
parent472c421e85fafbd2905e785852d04a7c0ab1e60a (diff)
downloadaerc-ef029aa26359b6524fc12ccc9f4c43b59d8b8f48.tar.gz
Display the mimetype when offering to pipe or save
Diffstat (limited to 'widgets')
-rw-r--r--widgets/msgviewer.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go
index 32368ef..0bfd2d8 100644
--- a/widgets/msgviewer.go
+++ b/widgets/msgviewer.go
@@ -625,7 +625,9 @@ func (pv *PartViewer) Draw(ctx *ui.Context) {
 		// TODO: Let them download it directly or something
 		ctx.Fill(0, 0, ctx.Width(), ctx.Height(), ' ', tcell.StyleDefault)
 		ctx.Printf(0, 0, tcell.StyleDefault.Foreground(tcell.ColorRed),
-			"No filter configured for this mimetype")
+			"No filter configured for this mimetype ('%s/%s')",
+			pv.part.MIMEType, pv.part.MIMESubType,
+		)
 		ctx.Printf(0, 2, tcell.StyleDefault,
 			"You can still :save the message or :pipe it to an external command")
 		pv.selecter.Focus(true)
f0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#!/bin/sh

./configure --enable-python-plugins --enable-c-plugins CFLAGS='-g -O0' CXXFLAGS='-g -O0'