imcontextwayland: (Hopefully) fix if expression

Backport from master: f9a5a474f0e1a482cacde63
This commit is contained in:
Timm Bäder
2019-01-04 05:55:26 +01:00
committed by Christoph Reiter
parent b819fcac74
commit 81c8efc863

View File

@ -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];