aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-05-19 18:09:16 -0400
committerDrew DeVault <sir@cmpwn.com>2019-05-19 18:18:48 -0400
commitf9251c2344d7a7d9661fdefa66734dceefba8488 (patch)
treeea27e74529e7508d3d0bdc53be55339a7dfe0a27
parent13032734cd90a172eb20a3208b084795784c390b (diff)
Reset message list cursor when switching stores
-rw-r--r--widgets/msglist.go2
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
}