diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-04-09 19:47:57 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-04-18 18:08:21 +0000 |
| commit | 2efd1016ce9174cffbfe2c800038a1f141fd712c (patch) | |
| tree | b6b9ffcef80a9ece96b776ecfa837d5e1c66fd2b /render.c | |
| parent | changelog: rewrite entry for OSC 17/117/19/119 (diff) | |
render: draw underline cursor below text underline
This ensures the cursor is visible on cells where the text is
underlined.
Closes #415
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -387,9 +387,10 @@ draw_cursor(const struct terminal *term, const struct cell *cell, if (likely(term->cursor_blink.state == CURSOR_BLINK_ON || !term->kbd_focus)) { + struct fcft_font *font = attrs_to_font(term, &cell->attrs); draw_underline( - term, pix, attrs_to_font(term, &cell->attrs), &cursor_color, - x, y, cols); + term, pix, font, &cursor_color, + x, y + font->underline.thickness, cols); } break; } |
