summary refs log tree commit diff stats
path: root/widgets
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-11-03 06:56:12 +0100
committerReto Brunner <reto@labrat.space>2020-11-14 15:40:13 +0100
commite7d450c61df85b16917444fc2c6ea6c11e3c5b44 (patch)
tree3c53673dbff18d305253b2df72bbb6e7164fa972 /widgets
parent03fa9ad99bc36e09e489f2a7a588ef745f323801 (diff)
downloadaerc-e7d450c61df85b16917444fc2c6ea6c11e3c5b44.tar.gz
rename header to heditors
Diffstat (limited to 'widgets')
-rw-r--r--widgets/compose.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/widgets/compose.go b/widgets/compose.go
index 03c9175..522146a 100644
--- a/widgets/compose.go
+++ b/widgets/compose.go
@@ -43,7 +43,7 @@ type Composer struct {
 	editor      *Terminal
 	email       *os.File
 	grid        *ui.Grid
-	header      *ui.Grid
+	heditors    *ui.Grid // from, to, cc display a user can jump to
 	msgId       string
 	review      *reviewMessage
 	worker      *types.Worker
@@ -670,7 +670,7 @@ func (c *Composer) AddEditor(header string, value string, appendHeader bool) {
 
 // updateGrid should be called when the underlying header layout is changed.
 func (c *Composer) updateGrid() {
-	header, height := c.layout.grid(
+	heditors, height := c.layout.grid(
 		func(h string) ui.Drawable { return c.editors[h] },
 	)
 
@@ -686,11 +686,11 @@ func (c *Composer) updateGrid() {
 		{ui.SIZE_WEIGHT, ui.Const(1)},
 	})
 
-	if c.header != nil {
-		c.grid.RemoveChild(c.header)
+	if c.heditors != nil {
+		c.grid.RemoveChild(c.heditors)
 	}
-	c.header = header
-	c.grid.AddChild(c.header).At(0, 0)
+	c.heditors = heditors
+	c.grid.AddChild(c.heditors).At(0, 0)
 	c.grid.AddChild(ui.NewFill(' ')).At(1, 0)
 }