about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--widgets/msglist.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/widgets/msglist.go b/widgets/msglist.go
index 9aff0d4..51c133c 100644
--- a/widgets/msglist.go
+++ b/widgets/msglist.go
@@ -163,10 +163,14 @@ func (ml *MessageList) MouseEvent(localX int, localY int, event tcell.Event) {
 				ml.aerc.NewTab(viewer, msg.Envelope.Subject)
 			}
 		case tcell.WheelDown:
-			ml.store.Next()
+			if ml.store != nil {
+				ml.store.Next()
+			}
 			ml.Scroll()
 		case tcell.WheelUp:
-			ml.store.Prev()
+			if ml.store != nil {
+				ml.store.Prev()
+			}
 			ml.Scroll()
 		}
 	}
fdde6e4ec89d9d02a5d6e88ae12f79'>^
18024037 ^
1fc1d8af ^








0726d2fa ^
ab1d1ae5 ^
2cd8e80b ^
18024037 ^
d3f9d547 ^
1fc1d8af ^


51a6f85e ^
d3f9d547 ^
1fc1d8af ^

e6ba2a01 ^
1fc1d8af ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37