diff options
author | Benjamin Otte <otte@redhat.com> | 2020-03-05 03:57:53 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2020-03-05 04:03:02 +0100 |
commit | 8fc360dac5e451a9c6949e8b2473d603a9a9c2b5 (patch) | |
tree | 555d6b16c313d2e2b6ff7c35e03f024709545950 /gtk/gtkimcontextwayland.c | |
parent | 4313c47113943a23bc4fb8b9b1f194716f094803 (diff) | |
download | gtk+-8fc360dac5e451a9c6949e8b2473d603a9a9c2b5.tar.gz |
imcontextwayland: Fix copy/paste error
Diffstat (limited to 'gtk/gtkimcontextwayland.c')
-rw-r--r-- | gtk/gtkimcontextwayland.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkimcontextwayland.c b/gtk/gtkimcontextwayland.c index 9511ae6978..393f9b91c6 100644 --- a/gtk/gtkimcontextwayland.c +++ b/gtk/gtkimcontextwayland.c @@ -321,7 +321,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)); |