Commit e77139c6 authored by Emmanuele Bassi's avatar Emmanuele Bassi 👣
Browse files

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

imwayland: Fix typo in code

See merge request !1533
parents 5be08a4d 965a85a0
Pipeline #161863 passed with stages
in 21 minutes and 16 seconds
......@@ -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));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment