mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
render: do render concealed text when it’s highlighted
This commit is contained in:
parent
1cb89fef9e
commit
1f807c6336
2 changed files with 5 additions and 1 deletions
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
* `generate-alt-random-writes.py --sixel`: width and height of emitted
|
||||
sixels has been adjusted.
|
||||
* _Concealed_ text (`\E[8m`) is now revealed when highlighted.
|
||||
|
||||
|
||||
### Deprecated
|
||||
|
|
|
|||
5
render.c
5
render.c
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue