From: Thomas Roessler Date: Tue, 14 Nov 2000 16:57:19 +0000 (+0000) Subject: another possibly problematic case. X-Git-Tag: mutt-1-3-12-rel~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf3df2d0359f5213adceb4df6a53f0b09a66b17e;p=mutt another possibly problematic case. --- diff --git a/curs_main.c b/curs_main.c index 2bb2cd67..6d066807 100644 --- a/curs_main.c +++ b/curs_main.c @@ -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) {