summaryrefslogtreecommitdiff
path: root/gtk/gtkcomposetable.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-07-07 23:22:23 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-07-13 22:02:33 -0400
commit1cff4bb27ae2abe421a062c6ea8c1fda56151425 (patch)
treec7417ef57e21cfc7e4627b0abe38b96285b785b8 /gtk/gtkcomposetable.c
parent8087250476b7cc6c8c6b1dace2bb89815682504e (diff)
downloadgtk+-1cff4bb27ae2abe421a062c6ea8c1fda56151425.tar.gz
composetable: Ignore length 1 sequences
It turns out that the X11 Compose file has some length 1 sequences which are not interesting to us.
Diffstat (limited to 'gtk/gtkcomposetable.c')
-rw-r--r--gtk/gtkcomposetable.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkcomposetable.c b/gtk/gtkcomposetable.c
index e32f11f3d5..2a012efa29 100644
--- a/gtk/gtkcomposetable.c
+++ b/gtk/gtkcomposetable.c
@@ -508,6 +508,12 @@ parser_remove_duplicates (GtkComposeParser *parser)
goto next;
}
+ if (sequence[1] == 0)
+ {
+ remove_sequence = TRUE;
+ goto next;
+ }
+
for (i = 0; i < MAX_COMPOSE_LEN + 1; i++)
keysyms[i] = 0;