summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxim Tarasov <mu@magi.net.ru>2020-07-21 14:40:50 -0700
committerKevin McCarthy <kevin@8t8.us>2020-07-21 14:40:50 -0700
commitaa8e6d4c837ee5564905455305e7507f727a2079 (patch)
tree88d688ae1559381e6930b9d8b37029f18db8a6b1
parente12028bdc02b96f65e0e20499e8ff496cc848a6d (diff)
Fix cursor overlay logic.
Attributes should always be merged, not only when indicator background or foreground is set.
-rw-r--r--color.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/color.c b/color.c
index 8f3c3ba7..cee39905 100644
--- a/color.c
+++ b/color.c
@@ -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;
}