imcontext: Allow sequences of length GTK_MAX_COMPOSE_LEN

There was an off-by-one error, making us reject sequences
of this length. But the rest of the code handles them
just fine.

Fixes: #2319
This commit is contained in:
Matthias Clasen 2021-02-01 00:55:25 -05:00
parent 162814f969
commit 094a346539

View File

@ -189,7 +189,7 @@ parse_compose_sequence (GtkComposeData *compose_data,
}
g_strfreev (words);
if (0 == n || n >= GTK_MAX_COMPOSE_LEN)
if (0 == n || n > GTK_MAX_COMPOSE_LEN)
{
g_warning ("The max length of compose sequences is %d: %s",
GTK_MAX_COMPOSE_LEN, line);