[gtk/gtk-3-24] imcontextwayland: (Hopefully) fix if expression
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24] imcontextwayland: (Hopefully) fix if expression
- Date: Mon, 15 Apr 2019 22:13:27 +0000 (UTC)
commit 81c8efc863fed7f3d348b9050db5f031fa3fceba
Author: Timm Bäder <mail baedert org>
Date: Fri Jan 4 05:55:26 2019 +0100
imcontextwayland: (Hopefully) fix if expression
Backport from master: f9a5a474f0e1a482cacde63
modules/input/imwayland.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/modules/input/imwayland.c b/modules/input/imwayland.c
index 41cb296336..021f556877 100644
--- a/modules/input/imwayland.c
+++ b/modules/input/imwayland.c
@@ -298,7 +298,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]