summaryrefslogtreecommitdiffstats
path: root/flags.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2005-10-31 10:03:55 +0000
committerThomas Roessler <roessler@does-not-exist.org>2005-10-31 10:03:55 +0000
commitd548c103a367231b6739e27c5a86e95277c1f5d3 (patch)
tree3869ad578d7d32914c77dd58524d9ad7d218e99f /flags.c
parent0951dfecceaf01099f6cf3e0f98545fcbcaaba35 (diff)
Fix #2123.
Diffstat (limited to 'flags.c')
-rw-r--r--flags.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/flags.c b/flags.c
index 93f400d9..9e0acc70 100644
--- 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;
}