aerc

Working clone of aerc-mail.org
git clone git://git.danielmoch.com/aerc.git
Log | Files | Refs | README | LICENSE

commit a7341aff21d025532600384d3ab9eb3e6a4d06cd
parent 4d6e665204ec68e8d99273b4988ef806ab0dac26
Author: Drew DeVault <sir@cmpwn.com>
Date:   Wed, 22 May 2019 10:39:52 -0400

Fix always showing last account tab

Diffstat:
Mwidgets/aerc.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/widgets/aerc.go b/widgets/aerc.go @@ -56,8 +56,8 @@ func NewAerc(conf *config.AercConfig, logger *log.Logger, tabs: tabs, } - for _, acct := range conf.Accounts { - view := NewAccountView(conf, &acct, logger, aerc) + for i, acct := range conf.Accounts { + view := NewAccountView(conf, &conf.Accounts[i], logger, aerc) aerc.accounts[acct.Name] = view tabs.Add(view, acct.Name) }