Commit be832493 be8324936f0f2e2a5defc0f55ec73317f0045ee0 by Sergey Poznyakoff

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

1 parent d73acb77
......@@ -27,9 +27,12 @@ mail_next (int argc, char **argv)
{
if (argc < 2)
{
if (cursor < total)
{
cursor++;
realcursor++;
}
}
else
{
msgset_t *list = NULL;
......