From f9251c2344d7a7d9661fdefa66734dceefba8488 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 19 May 2019 18:09:16 -0400 Subject: Reset message list cursor when switching stores --- widgets/msglist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets/msglist.go') diff --git a/widgets/msglist.go b/widgets/msglist.go index efecf2c..f7398dc 100644 --- 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 } -- cgit 1.4.1-2-gfad0