render: ignore IME preedit state when deciding which cursor style to render

This commit is contained in:
Daniel Eklöf 2020-12-03 18:37:12 +01:00
parent 05083110c3
commit 4d90b200f1
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -353,7 +353,7 @@ draw_cursor(const struct terminal *term, const struct cell *cell,
switch (term->cursor_style) {
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);
else if (likely(term->cursor_blink.state == CURSOR_BLINK_ON)) {