diff options
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/account.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/widgets/account.go b/widgets/account.go index 994bba6e..b34396bd 100644 --- a/widgets/account.go +++ b/widgets/account.go @@ -59,7 +59,7 @@ func NewAccountView(aerc *Aerc, conf *config.AercConfig, acct *config.AccountCon conf: conf, host: host, logger: logger, - state: statusline.NewState(acct.Name, len(conf.Accounts) > 1, " | "), + state: statusline.NewState(acct.Name, len(conf.Accounts) > 1, conf.Statusline), } view.grid = ui.NewGrid().Rows([]ui.GridSpec{ @@ -170,6 +170,9 @@ func (acct *AccountView) Invalidate() { } func (acct *AccountView) Draw(ctx *ui.Context) { + if acct.state.SetWidth(ctx.Width()) { + acct.UpdateStatus() + } acct.grid.Draw(ctx) } |