aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
Diffstat (limited to 'render.c')
-rw-r--r--render.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/render.c b/render.c
index 76f4b7c6..822667ae 100644
--- a/render.c
+++ b/render.c
@@ -419,7 +419,14 @@ cursor_colors_for_cell(const struct terminal *term, const struct cell *cell,
}
} else {
*cursor_color = *fg;
- *text_color = *bg;
+
+ if (unlikely(text_color->alpha != 0xffff)) {
+ /* We *know* this only happens when bg is the default bg
+ * color */
+ *text_color = color_hex_to_pixman(
+ term->reverse ? term->colors.fg : term->colors.bg);
+ } else
+ *text_color = *bg;
}
}