diff options
author | Kevin McCarthy <kevin@8t8.us> | 2022-11-21 12:48:46 -0800 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2022-11-21 12:48:46 -0800 |
commit | c79959e15388da4529569156e674eaa7b55c012e (patch) | |
tree | aa5085a0285694d36aff4f4999c32042c5fb1a66 | |
parent | 675178501d05bfc75b1d9cc3cd5bcea0c1b71e36 (diff) | |
parent | 2f35d2fdb99de2f35453a2f73a64a8702f35640a (diff) |
Merge branch 'stable'
-rw-r--r-- | flags.c | 14 | ||||
-rw-r--r-- | mutt.h | 1 | ||||
-rw-r--r-- | protos.h | 2 | ||||
-rw-r--r-- | score.c | 9 |
4 files changed, 8 insertions, 18 deletions
@@ -33,7 +33,6 @@ void _mutt_set_flag (CONTEXT *ctx, HEADER *h, int flag, int bf, int upd_flags) int tagged = ctx->tagged; int flagged = ctx->flagged; int upd_ctx = (upd_flags & MUTT_SET_FLAG_UPDATE_CONTEXT); - int upd_color = (upd_flags & MUTT_SET_FLAG_UPDATE_COLOR); int update = 0; if (ctx->readonly && flag != MUTT_TAG) @@ -274,13 +273,8 @@ void _mutt_set_flag (CONTEXT *ctx, HEADER *h, int flag, int bf, int upd_flags) if (update) { - if (upd_color) - mutt_set_header_color (ctx, h); - else - { - h->color.pair = 0; - h->color.attrs = 0; - } + h->color.pair = 0; + h->color.attrs = 0; #ifdef USE_SIDEBAR mutt_set_current_menu_redraw (REDRAW_SIDEBAR); #endif @@ -326,7 +320,7 @@ int mutt_thread_set_flag (HEADER *hdr, int flag, int bf, int subthread) */ if (cur->message) { - _mutt_set_flag (Context, cur->message, flag, bf, MUTT_SET_FLAG_UPDATE_CONTEXT); + mutt_set_flag (Context, cur->message, flag, bf); cur->message->color.pair = cur->message->color.attrs = 0; } @@ -337,7 +331,7 @@ int mutt_thread_set_flag (HEADER *hdr, int flag, int bf, int subthread) { if (cur->message) { - _mutt_set_flag (Context, cur->message, flag, bf, MUTT_SET_FLAG_UPDATE_CONTEXT); + mutt_set_flag (Context, cur->message, flag, bf); cur->message->color.pair = cur->message->color.attrs = 0; } @@ -383,7 +383,6 @@ enum /* flags for _mutt_set_flag() */ #define MUTT_SET_FLAG_UPDATE_CONTEXT (1<<0) -#define MUTT_SET_FLAG_UPDATE_COLOR (1<<1) /* flags for _mutt_buffer_expand_path() */ #define MUTT_EXPAND_PATH_RX (1<<0) @@ -275,7 +275,7 @@ void _mutt_buffer_select_file (BUFFER *, int, char ***, int *); void mutt_message_hook (CONTEXT *, HEADER *, int); void mutt_reset_child_signals (void); void _mutt_set_flag (CONTEXT *, HEADER *, int, int, int); -#define mutt_set_flag(a,b,c,d) _mutt_set_flag(a,b,c,d,MUTT_SET_FLAG_UPDATE_CONTEXT|MUTT_SET_FLAG_UPDATE_COLOR) +#define mutt_set_flag(a,b,c,d) _mutt_set_flag(a,b,c,d,MUTT_SET_FLAG_UPDATE_CONTEXT) void mutt_shell_escape (void); void mutt_show_error (void); void mutt_signal_init (void); @@ -159,16 +159,13 @@ void mutt_score_message (CONTEXT *ctx, HEADER *hdr, int upd_ctx) if (hdr->score <= ScoreThresholdDelete) _mutt_set_flag (ctx, hdr, MUTT_DELETE, 1, - (upd_ctx ? MUTT_SET_FLAG_UPDATE_CONTEXT : 0) | - MUTT_SET_FLAG_UPDATE_COLOR); + upd_ctx ? MUTT_SET_FLAG_UPDATE_CONTEXT : 0); if (hdr->score <= ScoreThresholdRead) _mutt_set_flag (ctx, hdr, MUTT_READ, 1, - (upd_ctx ? MUTT_SET_FLAG_UPDATE_CONTEXT : 0) | - MUTT_SET_FLAG_UPDATE_COLOR); + upd_ctx ? MUTT_SET_FLAG_UPDATE_CONTEXT : 0); if (hdr->score >= ScoreThresholdFlag) _mutt_set_flag (ctx, hdr, MUTT_FLAG, 1, - (upd_ctx ? MUTT_SET_FLAG_UPDATE_CONTEXT : 0) | - MUTT_SET_FLAG_UPDATE_COLOR); + upd_ctx ? MUTT_SET_FLAG_UPDATE_CONTEXT : 0); } int mutt_parse_unscore (BUFFER *buf, BUFFER *s, union pointer_long_t udata, BUFFER *err) |