about summary refs log tree commit diff stats
path: root/widgets/compose.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/compose.go')
-rw-r--r--widgets/compose.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/widgets/compose.go b/widgets/compose.go
index aab3308..01c6281 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)