summaryrefslogtreecommitdiff
path: root/widgets/msgviewer.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2021-11-05 10:34:10 +0100
committerRobin Jarry <robin@jarry.cc>2021-11-05 10:45:31 +0100
commit20752df89c3bef0aca23493bfe8a668b93db9947 (patch)
tree8af53669d04342b787285001047346f3bd147e8f /widgets/msgviewer.go
parentb1daf08991675e879382f4c383dea50d671630ec (diff)
downloadaerc-20752df89c3bef0aca23493bfe8a668b93db9947.zip
viewer: add colon after header names
Display them as standard RFC 822 headers. Signed-off-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets/msgviewer.go')
-rw-r--r--widgets/msgviewer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go
index b1decd5..fc4529c 100644
--- a/widgets/msgviewer.go
+++ b/widgets/msgviewer.go
@@ -731,7 +731,7 @@ type HeaderView struct {
func (hv *HeaderView) Draw(ctx *ui.Context) {
name := hv.Name
- size := runewidth.StringWidth(name)
+ size := runewidth.StringWidth(name + ":")
lim := ctx.Width() - size - 1
value := runewidth.Truncate(" "+hv.Value, lim, "…")
@@ -744,7 +744,7 @@ func (hv *HeaderView) Draw(ctx *ui.Context) {
}
ctx.Fill(0, 0, ctx.Width(), ctx.Height(), ' ', vstyle)
- ctx.Printf(0, 0, hstyle, "%s", name)
+ ctx.Printf(0, 0, hstyle, "%s:", name)
ctx.Printf(size, 0, vstyle, "%s", value)
}