From a7341aff21d025532600384d3ab9eb3e6a4d06cd Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 22 May 2019 10:39:52 -0400 Subject: Fix always showing last account tab --- widgets/aerc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'widgets') 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) } -- cgit 1.4.1-2-gfad0