From 6fd4d38af4a69550a4cffc9bf04a2e35446e8f29 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 4 Dec 2016 12:50:21 +1000 Subject: [PATCH] Fix for message listing when no new messages --- mail_menu.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mail_menu.c b/mail_menu.c index 2793766..c5b8ef3 100644 --- a/mail_menu.c +++ b/mail_menu.c @@ -1702,7 +1702,12 @@ int mail_menu(struct user_record *user) { break; } } - i+=2; + if (i == msghs->msg_count - 1) { + i = 1; + } else { + i+=2; + } + } else { i = 1; }