summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pamment <apamment@yandex.com>2018-12-01 13:13:18 +1000
committerAndrew Pamment <apamment@yandex.com>2018-12-01 13:13:18 +1000
commitc4c462b6f22c92d0a05505c9b878994e5776c627 (patch)
treed30b3c784373ce82661621d71126a48e0837b3ed
parent1bdc63cb7ff761b317f048d00468c9631ec18780 (diff)
Not sure why this isn't working...
-rw-r--r--src/mail_menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mail_menu.c b/src/mail_menu.c
index 04787af..93be636 100644
--- a/src/mail_menu.c
+++ b/src/mail_menu.c
@@ -3149,7 +3149,7 @@ int count_msgs_above_msgno(struct msg_headers *msghs, int highmsgno) {
int highmsg = 0;
for (i=msghs->msg_count-1; i>=0;i--) {
- if (msghs->msgs[i]->msg_no <= highmsgno) break;
+ if (msghs->msgs[i]->msg_no < highmsgno) break;
highmsg++;
}
return highmsg;