mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 06:10:21 +00:00
Merge branch 'im-cursor-pos' into 'master'
imcontext: Fix cursor positions Closes #3885 See merge request GNOME/gtk!3464
This commit is contained in:
commit
ebd8338795
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user