]> granicus.if.org Git - mutt/commitdiff
another possibly problematic case.
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 14 Nov 2000 16:57:19 +0000 (16:57 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 14 Nov 2000 16:57:19 +0000 (16:57 +0000)
curs_main.c

index 2bb2cd67f34fd86581090167cc6a6b2d088d9244..6d066807832fbb86239bbd47f0687037bd962171 100644 (file)
@@ -745,7 +745,7 @@ int mutt_index_menu (void)
       case OP_MAIN_LIMIT:
 
        CHECK_MSGCOUNT;
-       menu->oldcurrent = (Context->vcount && menu->current < Context->vcount) ?
+       menu->oldcurrent = (Context->vcount && menu->current >= 0 && menu->current < Context->vcount) ?
                CURHDR->index : -1;
        if (mutt_pattern_func (M_LIMIT, _("Limit to messages matching: ")) == 0)
        {