diff options
author | Maxim Tarasov <mu@magi.net.ru> | 2020-07-21 14:40:50 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2020-07-21 14:40:50 -0700 |
commit | aa8e6d4c837ee5564905455305e7507f727a2079 (patch) | |
tree | 88d688ae1559381e6930b9d8b37029f18db8a6b1 | |
parent | e12028bdc02b96f65e0e20499e8ff496cc848a6d (diff) |
Fix cursor overlay logic.
Attributes should always be merged, not only when indicator background
or foreground is set.
-rw-r--r-- | color.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -258,10 +258,11 @@ int mutt_merge_colors (int source_pair, int overlay_pair) merged_fg = overlay->fg < 0 ? source->fg : overlay->fg; merged_bg = overlay->bg < 0 ? source->bg : overlay->bg; merged_pair = mutt_alloc_color (merged_fg, merged_bg, 0); - merged_pair |= (source_pair & ATTR_MASK) | (overlay_pair & ATTR_MASK); } } + merged_pair |= (source_pair & ATTR_MASK) | (overlay_pair & ATTR_MASK); + return merged_pair; } |