diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-12-29 11:21:27 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-12-29 11:21:27 +0000 |
commit | 6dcfd9bfe9a3285f85ce1983038b2a2dcad82da8 (patch) | |
tree | 664e193344f02f9c731924b2757383bcbebb8f4d /mh.c | |
parent | 47d09dafa148b19e88d1fdae947fd7dfafea5489 (diff) |
Take setting the index_hint out of the main loop of
mh_check_mailbox().
Diffstat (limited to 'mh.c')
-rw-r--r-- | mh.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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); |