diff options
author | Reto Brunner <reto@labrat.space> | 2020-11-03 06:56:12 +0100 |
---|---|---|
committer | Reto Brunner <reto@labrat.space> | 2020-11-14 15:40:13 +0100 |
commit | e7d450c61df85b16917444fc2c6ea6c11e3c5b44 (patch) | |
tree | 3c53673dbff18d305253b2df72bbb6e7164fa972 /widgets/compose.go | |
parent | 03fa9ad99bc36e09e489f2a7a588ef745f323801 (diff) | |
download | aerc-e7d450c61df85b16917444fc2c6ea6c11e3c5b44.tar.gz |
rename header to heditors
Diffstat (limited to 'widgets/compose.go')
-rw-r--r-- | widgets/compose.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/widgets/compose.go b/widgets/compose.go index 03c91752..522146ab 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) } |