Fix #2123.
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 31 Oct 2005 10:03:55 +0000 (10:03 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 31 Oct 2005 10:03:55 +0000 (10:03 +0000)
flags.c

diff --git a/flags.c b/flags.c
index 93f400d9cc3619263f35b6dbee2741b5f8e39c34..9e0acc7010c73cb37381f36d5e041803b20c953f 100644 (file)
--- a/flags.c
+++ b/flags.c
@@ -34,6 +34,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 */
@@ -272,7 +273,7 @@ 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;
 }