aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorEyal Sawady <ecs@d2evs.net>2021-01-13 02:08:09 -0500
committerReto Brunner <reto@labrat.space>2021-01-14 06:36:09 +0100
commitd344ceecfe9892db1e836e7354a5ce25c2cb7290 (patch)
treefebc4dc3001bd56f2b4d381ab45f2c33cabb85f4 /widgets
parent0e554a879d1b8de61e6eb7d2e7ef64e9ec99ce1b (diff)
downloadaerc-d344ceecfe9892db1e836e7354a5ce25c2cb7290.tar.gz
compose: apply default style to header separator
Diffstat (limited to 'widgets')
-rw-r--r--widgets/compose.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/widgets/compose.go b/widgets/compose.go
index aab33088..01c6281a 100644
--- a/widgets/compose.go
+++ b/widgets/compose.go
@@ -770,9 +770,9 @@ func (he *headerEditor) setValue(val string) {
}
func (he *headerEditor) Draw(ctx *ui.Context) {
- normalized := textproto.CanonicalMIMEHeaderKey(he.name)
- name := normalized + " "
- size := runewidth.StringWidth(name)
+ name := textproto.CanonicalMIMEHeaderKey(he.name)
+ // Extra character to put a blank cell between the header and the input
+ size := runewidth.StringWidth(name) + 1
defaultStyle := he.uiConfig.GetStyle(config.STYLE_DEFAULT)
headerStyle := he.uiConfig.GetStyle(config.STYLE_HEADER)
ctx.Fill(0, 0, size, ctx.Height(), ' ', defaultStyle)