commit 9baf688
delthas
·
2025-03-17 23:03:39 +0000 UTC
parent f5befdb
Fix theoretical crash on read event on overlay tab I am not sure how this could happen in practice but a user has had this panic. Thanks to one-star-chef for finding the issue.
1 files changed,
+1,
-1
+1,
-1
1@@ -647,7 +647,7 @@ func (bs *BufferList) clearRead(i int) {
2
3 func (bs *BufferList) SetRead(netID, title string, timestamp time.Time) {
4 i, b := bs.at(netID, title)
5- if b == nil {
6+ if b == nil || i < 0 {
7 return
8 }
9 clearRead := true