X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=browser.c;h=25bd7f0dcf3fe27ffefdbefea9a4c1cf8a817396;hp=6e24df9dec928aa47acd168dc3b1fabadccbc996;hb=8db79e60e71671e49920599664a3e155ce32797e;hpb=4c783f80ab5f40cd58bd585b078ae8dacd8a7f99 diff --git a/browser.c b/browser.c index 6e24df9..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);