Merge branch 'wip/carlosg/fix-surrounding-text' into 'gtk-3-24'

imwayland: Fix typo in code

See merge request GNOME/gtk!1533
This commit is contained in:
Emmanuele Bassi 2020-03-18 16:30:16 +00:00
commit e77139c6bb

View File

@ -320,7 +320,7 @@ notify_surrounding_text (GtkIMContextWayland *context)
}
mid = MIN (context->surrounding.cursor_idx,
context->surrounding.cursor_idx) + (cursor_len / 2);
context->surrounding.anchor_idx) + (cursor_len / 2);
a = MAX (0, mid - (MAX_LEN / 2));
b = MIN (MAX_LEN, mid + (MAX_LEN / 2));