aboutsummaryrefslogtreecommitdiff
path: root/widgets
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-05-22 10:39:52 -0400
committerDrew DeVault <sir@cmpwn.com>2019-05-22 10:39:52 -0400
commita7341aff21d025532600384d3ab9eb3e6a4d06cd (patch)
treefd47b59cc1f9045976f4bcda6ef37548b1a24a4c /widgets
parent4d6e665204ec68e8d99273b4988ef806ab0dac26 (diff)
Fix always showing last account tab
Diffstat (limited to 'widgets')
-rw-r--r--widgets/aerc.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go
index eba76a2..484fd88 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)
}