diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-04-23 19:27:32 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-04-23 19:27:32 +0000 |
| commit | 1f807c6336cb388272afc744bba69a4e9ec5e82a (patch) | |
| tree | 4aeed3534de825ca7f8c6efa9e68a8859e3f333f /render.c | |
| parent | pkgbuild: run ‘ninja test’ in the PGO generate phase (diff) | |
render: do render concealed text when it’s highlighted
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -563,8 +563,11 @@ render_cell(struct terminal *term, pixman_image_t *pix, if (has_cursor && term->cursor_style == CURSOR_BLOCK && term->kbd_focus) draw_cursor(term, cell, font, pix, &fg, &bg, x, y, cell_cols); - if (cell->wc == 0 || cell->wc == CELL_MULT_COL_SPACER || cell->attrs.conceal) + if (cell->wc == 0 || cell->wc == CELL_MULT_COL_SPACER || + (unlikely(cell->attrs.conceal) && !is_selected)) + { goto draw_cursor; + } pixman_image_t *clr_pix = pixman_image_create_solid_fill(&fg); |
