aerc

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

commit f9251c2344d7a7d9661fdefa66734dceefba8488
parent 13032734cd90a172eb20a3208b084795784c390b
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 19 May 2019 18:09:16 -0400

Reset message list cursor when switching stores

Diffstat:
Mwidgets/msglist.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/widgets/msglist.go b/widgets/msglist.go @@ -129,7 +129,7 @@ func (ml *MessageList) storeUpdate(store *lib.MessageStore) { } func (ml *MessageList) SetStore(store *lib.MessageStore) { - if ml.Store() == store { + if ml.Store() != store { ml.scroll = 0 ml.selected = 0 }