diff --git a/terminal/terminal.c b/terminal/terminal.c index 6198a411..0fad9eb8 100644 --- a/terminal/terminal.c +++ b/terminal/terminal.c @@ -6128,11 +6128,13 @@ static void do_paint(Terminal *term) preedit_end = term->cols; preedit_start = preedit_end - term->preedit_termline->cols; } + /* Show the cursor at the right end of the pre-edit text. */ if (term->preedit_termline->chars[term->preedit_termline->cols - 1] .chr == UCSWIDE) our_curs_x = preedit_end - 2; else our_curs_x = preedit_end - 1; + cursor |= ATTR_RIGHTCURS; } /*