diff options
author | Kevin McCarthy <kevin@8t8.us> | 2021-04-11 14:19:33 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2021-04-15 17:58:56 -0700 |
commit | c20a5169f7a3b5525f1d8c0ee4b0743d8358a98c (patch) | |
tree | ee113d04cbc384279f23c4ea0063d4034fff8ef0 /commands.c | |
parent | 869c6cc49ccd861f78990dd60e5c3ec770511700 (diff) |
Use bkgrndset() as ATTRSET() backend if available.
This function allows more usable color pairs, because it passes the
pair parameter separately. The COLOR_PAIR() macro only returns 8-bits
for a pair, limiting the total pairs used to 256 despite many systems
having much larger COLOR_PAIRS values.
In order to do this, separate out the pair and attrs values, instead
of combining attr + COLOR_PAIR(pair) into a single value and storing
that inside Mutt. For the older calls, bkgdset() and attrset(), we
call COLOR_PAIR() at the last minute.
Add COLOR_ATTR to header cache sum calculation, since it is used in
the HEADER now.
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -287,7 +287,7 @@ int mutt_display_message (HEADER *cur) /* Remove color cache for this message, in case there are color patterns for both ~g and ~V */ - cur->pair = 0; + cur->color.pair = cur->color.attrs = 0; /* Process protected headers and autocrypt gossip headers */ process_protected_headers (cur); |