From: Thomas Roessler Date: Tue, 29 Dec 1998 11:21:27 +0000 (+0000) Subject: Take setting the index_hint out of the main loop of X-Git-Tag: archive/mutt-0-95-exp~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6dcfd9bfe9a3285f85ce1983038b2a2dcad82da8;p=mutt Take setting the index_hint out of the main loop of mh_check_mailbox(). --- diff --git a/mh.c b/mh.c index 6cf5625a..7b134956 100644 --- a/mh.c +++ b/mh.c @@ -18,7 +18,8 @@ static const char rcsid[]="$Id$"; */ /* - * This file contains routines specific to MH and ``maildir'' style mailboxes + * This file contains routines specific to MH and ``maildir'' style + * mailboxes. */ #include "mutt.h" @@ -782,11 +783,11 @@ int mh_check_mailbox(CONTEXT *ctx, int *index_hint) if(index_hint && (i < *index_hint)) deleted++; } - - if(index_hint && (i == *index_hint)) - *index_hint -= deleted; } + if (index_hint && occult) + *index_hint -= deleted; + /* dump the file name hash */ hash_destroy(&fnames, NULL);