mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-04 07:15:29 -04:00
render: ignore IME preedit state when deciding which cursor style to render
This commit is contained in:
parent
05083110c3
commit
4d90b200f1
1 changed files with 1 additions and 1 deletions
2
render.c
2
render.c
|
|
@ -353,7 +353,7 @@ draw_cursor(const struct terminal *term, const struct cell *cell,
|
||||||
|
|
||||||
switch (term->cursor_style) {
|
switch (term->cursor_style) {
|
||||||
case CURSOR_BLOCK:
|
case CURSOR_BLOCK:
|
||||||
if (unlikely(!term->kbd_focus || term->ime.preedit.cells != NULL))
|
if (unlikely(!term->kbd_focus))
|
||||||
draw_unfocused_block(term, pix, &cursor_color, x, y, cols);
|
draw_unfocused_block(term, pix, &cursor_color, x, y, cols);
|
||||||
|
|
||||||
else if (likely(term->cursor_blink.state == CURSOR_BLINK_ON)) {
|
else if (likely(term->cursor_blink.state == CURSOR_BLINK_ON)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue