summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2022-11-21 12:48:46 -0800
committerKevin McCarthy <kevin@8t8.us>2022-11-21 12:48:46 -0800
commitc79959e15388da4529569156e674eaa7b55c012e (patch)
treeaa5085a0285694d36aff4f4999c32042c5fb1a66
parent675178501d05bfc75b1d9cc3cd5bcea0c1b71e36 (diff)
parent2f35d2fdb99de2f35453a2f73a64a8702f35640a (diff)
Merge branch 'stable'
-rw-r--r--flags.c14
-rw-r--r--mutt.h1
-rw-r--r--protos.h2
-rw-r--r--score.c9
4 files changed, 8 insertions, 18 deletions
diff --git a/flags.c b/flags.c
index 5b016559..bc76a3a6 100644
--- a/flags.c
+++ b/flags.c
@@ -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;
}
diff --git a/mutt.h b/mutt.h
index bb29e7a6..2946c78b 100644
--- a/mutt.h
+++ b/mutt.h
@@ -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)
diff --git a/protos.h b/protos.h
index b8f83b26..a055d1a2 100644
--- a/protos.h
+++ b/protos.h
@@ -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);
diff --git a/score.c b/score.c
index 338d73fb..3adf39db 100644
--- a/score.c
+++ b/score.c
@@ -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)