mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-21 05:33:45 -04:00
commit
97bc740d3d
2 changed files with 8 additions and 2 deletions
|
|
@ -35,6 +35,11 @@
|
||||||
|
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
* Underline cursor is now rendered below text underline
|
||||||
|
(https://codeberg.org/dnkl/foot/issues/415).
|
||||||
|
|
||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
### Removed
|
### Removed
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
||||||
5
render.c
5
render.c
|
|
@ -387,9 +387,10 @@ draw_cursor(const struct terminal *term, const struct cell *cell,
|
||||||
if (likely(term->cursor_blink.state == CURSOR_BLINK_ON ||
|
if (likely(term->cursor_blink.state == CURSOR_BLINK_ON ||
|
||||||
!term->kbd_focus))
|
!term->kbd_focus))
|
||||||
{
|
{
|
||||||
|
struct fcft_font *font = attrs_to_font(term, &cell->attrs);
|
||||||
draw_underline(
|
draw_underline(
|
||||||
term, pix, attrs_to_font(term, &cell->attrs), &cursor_color,
|
term, pix, font, &cursor_color,
|
||||||
x, y, cols);
|
x, y + font->underline.thickness, cols);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue