summaryrefslogtreecommitdiffstats
path: root/mh.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-12-29 11:21:27 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-12-29 11:21:27 +0000
commit6dcfd9bfe9a3285f85ce1983038b2a2dcad82da8 (patch)
tree664e193344f02f9c731924b2757383bcbebb8f4d /mh.c
parent47d09dafa148b19e88d1fdae947fd7dfafea5489 (diff)
Take setting the index_hint out of the main loop of
mh_check_mailbox().
Diffstat (limited to 'mh.c')
-rw-r--r--mh.c9
1 files changed, 5 insertions, 4 deletions
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);