X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=buffy.c;h=b00170b41df4709d08de275e5155545d6dad8334;hp=f1b39b38070e99ee44ef592e84e123e8e427074b;hb=e745050e2e9e1078a009828ed6db68fd72db771c;hpb=642a770d749788adac51935945426ae3846da226 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++;