diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-05-22 10:39:52 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-05-22 10:39:52 -0400 |
commit | a7341aff21d025532600384d3ab9eb3e6a4d06cd (patch) | |
tree | fd47b59cc1f9045976f4bcda6ef37548b1a24a4c | |
parent | 4d6e665204ec68e8d99273b4988ef806ab0dac26 (diff) | |
download | aerc-a7341aff21d025532600384d3ab9eb3e6a4d06cd.tar.gz |
Fix always showing last account tab
-rw-r--r-- | widgets/aerc.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go index eba76a21..484fd88e 100644 --- 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) } |