X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=flags.c;h=fd3333fa24a8c5bbd6050147afe82fa8e09a4090;hp=b206ae39f409f387637c272a552bb6ae1585f110;hb=75254682ac295c8bd39ec01d8e96c5d9b0938682;hpb=8e6b42b9b28f646a6764936d80bda04647d5b45f diff --git a/flags.c b/flags.c index b206ae3..fd3333f 100644 --- a/flags.c +++ b/flags.c @@ -29,6 +29,7 @@ void _mutt_set_flag (CONTEXT * ctx, HEADER * h, int flag, int bf, int upd_ctx) int changed = h->changed; int deleted = ctx->deleted; int tagged = ctx->tagged; + int flagged = ctx->flagged; if (ctx->readonly && flag != M_TAG) return; /* don't modify anything if we are read-only */ @@ -270,9 +271,8 @@ void _mutt_set_flag (CONTEXT * ctx, HEADER * h, int flag, int bf, int upd_ctx) * search results so that any future search will match the current status * of this message and not what it was at the time it was last searched. */ - if (h->searched - && (changed != h->changed || deleted != ctx->deleted - || tagged != ctx->tagged)) + if (h->searched && (changed != h->changed || deleted != ctx->deleted || + tagged != ctx->tagged || flagged != ctx->flagged)) h->searched = 0; sidebar_draw (0); }