Commit b6c79857 authored by Thomas Roessler's avatar Thomas Roessler

Fix #1175.

parent d1b60b8b
......@@ -1043,11 +1043,11 @@ mutt_pattern_exec (struct pattern_t *pat, pattern_exec_flag flags, CONTEXT *ctx,
return (pat->not ^ (h->collapsed && h->num_hidden > 1));
#ifdef HAVE_PGP
case M_PGP_SIGN:
return (pat->not ^ (h->pgp & PGPSIGN));
return (pat->not ^ ((h->pgp & PGPSIGN) ? 1 : 0));
case M_PGP_ENCRYPT:
return (pat->not ^ (h->pgp & PGPENCRYPT));
return (pat->not ^ ((h->pgp & PGPENCRYPT) ? 1 : 0));
case M_PGP_KEY:
return (pat->not ^ (h->pgp & PGPKEY));
return (pat->not ^ ((h->pgp & PGPKEY) ? 1 : 0));
#endif
case M_XLABEL:
return (pat->not ^ (h->env->x_label && regexec (pat->rx, h->env->x_label, 0, NULL, 0) == 0));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment