diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-02-27 16:51:29 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-02-27 16:51:29 +0000 |
| commit | 7a43737745e5e6d8c5ef1cb29ade75b6ca2d6f03 (patch) | |
| tree | 38a6815f369c9c349c0f48caff086dbeb756e938 /render.c | |
| parent | wayland: ignore configure events for unmapped surfaces (diff) | |
render: fix selected cursor cell being ‘invisble’ when background alpha is used
... by taking the cell ‘selected’ state into account when determining
whether to use the default fg or bg as the ‘text’ color.
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -424,7 +424,7 @@ cursor_colors_for_cell(const struct terminal *term, const struct cell *cell, /* 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); + term->reverse ^ is_selected ? term->colors.fg : term->colors.bg); } else *text_color = *bg; } |
