aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/msgstore.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go
index 1a56b2c8..8b2d0419 100644
--- a/lib/msgstore.go
+++ b/lib/msgstore.go
@@ -613,6 +613,10 @@ func (store *MessageStore) Select(uid uint32) {
store.threadCallback = nil
}
store.threadsMutex.Unlock()
+ store.selectPriv(uid)
+}
+
+func (store *MessageStore) selectPriv(uid uint32) {
store.selectedUid = uid
if store.marker != nil {
store.marker.UpdateVisualMark()
@@ -647,7 +651,7 @@ func (store *MessageStore) NextPrev(delta int) {
store.threadsMutex.Lock()
store.threadCallback = func() {
if uids := store.Uids(); len(uids) > newIdx {
- store.Select(uids[newIdx])
+ store.selectPriv(uids[newIdx])
}
}
store.threadsMutex.Unlock()