color index with a '~y' pattern were not being updated after
adding/removing labels.
new = NULL;
changed = 0;
- if (hdr != NULL) {
- changed += label_message(Context, hdr, new);
+ if (hdr != NULL)
+ {
+ if (label_message(Context, hdr, new))
+ {
+ ++changed;
+ mutt_set_header_color (Context, hdr);
+ }
} else {
#define HDR_OF(index) Context->hdrs[Context->v2r[(index)]]
for (i = 0; i < Context->vcount; ++i) {
++changed;
mutt_set_flag(Context, HDR_OF(i),
MUTT_TAG, 0);
+ /* mutt_set_flag re-evals the header color */
}
}
}