1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-21 21:15:03 -05:00

Put the cursor at the right-hand end of the pre-edit string

That's the more logical location in a string more than one character
long.  GTK does actually tell us where it thinks the cursor should be,
but we don't yet pay attention to that.
This commit is contained in:
Ben Harris 2025-04-05 20:26:20 +01:00
parent 6532408ba5
commit 4f4f752e47

View File

@ -6129,7 +6129,11 @@ static void do_paint(Terminal *term)
preedit_end = term->cols; preedit_end = term->cols;
preedit_start = preedit_end - term->preedit_termline->cols; preedit_start = preedit_end - term->preedit_termline->cols;
} }
our_curs_x = preedit_start; 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;
} }
/* /*