X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=buffy.c;h=b00170b41df4709d08de275e5155545d6dad8334;hp=f1b39b38070e99ee44ef592e84e123e8e427074b;hb=2480908b15d54c196bab72d01773e3f3e27d0daf;hpb=8243e9994488a1cd45419e57d0040e321fdb2173 diff --git a/buffy.c b/buffy.c index f1b39b3..b00170b 100644 --- a/buffy.c +++ b/buffy.c @@ -390,10 +390,11 @@ int buffy_check (int force) /* one new and undeleted message is enough */ if (tmp->new == 0) { BuffyCount++; - tmp->new = 1; - if (!count) + if (!count) { /* if sidebar invisible -> done */ + tmp->new = 1; break; + } } tmp->msgcount++; tmp->msg_unread++;