X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=browser.c;h=25bd7f0dcf3fe27ffefdbefea9a4c1cf8a817396;hp=ddc6b47ae2887b180a1e89719a960292c48fa016;hb=57352369229a00b32f5331cdd12f4ea1ace60f78;hpb=7768c028980b5fb468decf4fbfbd640082c321b2 diff --git a/browser.c b/browser.c index ddc6b47..25bd7f0 100644 --- a/browser.c +++ b/browser.c @@ -370,11 +370,11 @@ newsgroup_format_str(char *dest, ssize_t destlen, char op, snprintf (dest, destlen, tmp, Context->new); } else if (option (OPTMARKOLD) && - folder->ff->nd->lastCached >= folder->ff->nd->firstMessage && - folder->ff->nd->lastCached <= folder->ff->nd->lastMessage) { + folder->ff->nd->lastCached >= folder->ff->nd->first && + folder->ff->nd->lastCached <= folder->ff->nd->last) { snprintf (tmp, sizeof (tmp), "%%%sd", fmt); snprintf (dest, destlen, tmp, - folder->ff->nd->lastMessage - folder->ff->nd->lastCached); + folder->ff->nd->last - folder->ff->nd->lastCached); } else { snprintf (tmp, sizeof (tmp), "%%%sd", fmt); @@ -1428,7 +1428,6 @@ void mutt_select_file (char *f, ssize_t flen, int flags, char ***files, init_menu (&state, menu, title, sizeof (title), buffy); } mutt_newsrc_update (news); - nntp_clear_cacheindex (news); if (i != OP_BROWSER_SUBSCRIBE && i != OP_BROWSER_UNSUBSCRIBE) regfree (rx); p_delete(&rx);