Commit bf3df2d0 authored by Thomas Roessler's avatar Thomas Roessler

another possibly problematic case.

parent 92954afd
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment