summary refs log tree commit diff stats
path: root/widgets/msglist.go
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 /widgets/msglist.go
parent13032734cd90a172eb20a3208b084795784c390b (diff)
downloadaerc-f9251c2344d7a7d9661fdefa66734dceefba8488.tar.gz
Reset message list cursor when switching stores
Diffstat (limited to 'widgets/msglist.go')
-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
 	}
n133' href='#n133'>133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152