mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-08 10:06:22 -05:00
render: draw hollow block cursor on top of the character, not the opposite
This commit is contained in:
parent
056fd4ffe0
commit
8f37c839f3
2 changed files with 3 additions and 3 deletions
|
|
@ -47,7 +47,7 @@
|
|||
* Set `IUTF8`.
|
||||
* Selection of double-width characters. It is no longer possible to
|
||||
select half of a double-width character.
|
||||
|
||||
* Draw hollow block cursor on top of character.
|
||||
|
||||
### Security
|
||||
|
||||
|
|
|
|||
4
render.c
4
render.c
|
|
@ -428,7 +428,7 @@ render_cell(struct terminal *term, pixman_image_t *pix,
|
|||
if (cell->attrs.blink)
|
||||
term_arm_blink_timer(term);
|
||||
|
||||
if (has_cursor && term->cursor_style == CURSOR_BLOCK)
|
||||
if (has_cursor && term->cursor_style == CURSOR_BLOCK && term->visual_focus)
|
||||
draw_cursor(term, cell, font, pix, &fg, &bg, x, y, cell_cols);
|
||||
|
||||
if (cell->wc == 0 || cell->attrs.conceal)
|
||||
|
|
@ -487,7 +487,7 @@ render_cell(struct terminal *term, pixman_image_t *pix,
|
|||
}
|
||||
|
||||
draw_cursor:
|
||||
if (has_cursor && term->cursor_style != CURSOR_BLOCK)
|
||||
if (has_cursor && (term->cursor_style != CURSOR_BLOCK || !term->visual_focus))
|
||||
draw_cursor(term, cell, font, pix, &fg, &bg, x, y, cell_cols);
|
||||
|
||||
return cell_cols;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue