aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/msglist.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/msglist.go')
-rw-r--r--widgets/msglist.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/msglist.go b/widgets/msglist.go
index ac941c8b..b72fb035 100644
--- a/widgets/msglist.go
+++ b/widgets/msglist.go
@@ -149,6 +149,9 @@ func (ml *MessageList) Select(index int) {
}
func (ml *MessageList) nextPrev(delta int) {
+ if ml.store == nil || len(ml.store.Uids) == 0 {
+ return
+ }
ml.selected += delta
if ml.selected < 0 {
ml.selected = 0