Commit be832493 be8324936f0f2e2a5defc0f55ec73317f0045ee0 by Sergey Poznyakoff

(mail_next): Do not allow the cursor to grow past total number of messages.

1 parent d73acb77
......@@ -27,8 +27,11 @@ mail_next (int argc, char **argv)
{
if (argc < 2)
{
cursor++;
realcursor++;
if (cursor < total)
{
cursor++;
realcursor++;
}
}
else
{
......