Commit 81c8efc8 authored by Timm Bäder's avatar Timm Bäder Committed by Christoph Reiter
Browse files

imcontextwayland: (Hopefully) fix if expression

Backport from master: f9a5a474f0e1a482cacde63
parent b819fcac
......@@ -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];
......
Markdown is supported
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