diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-05-19 18:09:16 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-05-19 18:18:48 -0400 |
commit | f9251c2344d7a7d9661fdefa66734dceefba8488 (patch) | |
tree | ea27e74529e7508d3d0bdc53be55339a7dfe0a27 | |
parent | 13032734cd90a172eb20a3208b084795784c390b (diff) | |
download | aerc-f9251c2344d7a7d9661fdefa66734dceefba8488.zip |
Reset message list cursor when switching stores
-rw-r--r-- | widgets/msglist.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |