[gtk] imcontextwayland: (Hopefully) fix if expression



commit f9a5a474f0e1a482cacde63a49cb649dd69e5ca1
Author: Timm Bäder <mail baedert org>
Date:   Fri Jan 4 05:55:26 2019 +0100

    imcontextwayland: (Hopefully) fix if expression

 gtk/gtkimcontextwayland.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkimcontextwayland.c b/gtk/gtkimcontextwayland.c
index 86ae4d43d4..66ea4c86c9 100644
--- a/gtk/gtkimcontextwayland.c
+++ b/gtk/gtkimcontextwayland.c
@@ -282,7 +282,7 @@ notify_surrounding_text (GtkIMContextWayland *context)
           end = &context->surrounding.text[MAX_LEN];
         }
       else if (context->surrounding.cursor_idx > len - MAX_LEN &&
-               context->surrounding.cursor_idx > len - MAX_LEN)
+               context->surrounding.anchor_idx > len - MAX_LEN)
         {
           start = &context->surrounding.text[len - MAX_LEN];
           end = &context->surrounding.text[len];


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]