Merge branch 'im-cursor-pos' into 'master'

imcontext: Fix cursor positions

Closes #3885

See merge request GNOME/gtk!3464
This commit is contained in:
Matthias Clasen 2021-04-21 17:43:12 +00:00
commit ebd8338795

View File

@ -1152,7 +1152,7 @@ gtk_im_context_simple_get_preedit_string (GtkIMContext *context,
}
if (cursor_pos)
*cursor_pos = s->len;
*cursor_pos = g_utf8_strlen (s->str, s->len);
if (attrs)
{