Merge branch 'im-cursor-pos' into 'master'
imcontext: Fix cursor positions Closes #3885 See merge request GNOME/gtk!3464
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user