[gtk/wip/compose-parser: 12/15] composetable: Ignore length 1 sequences
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/compose-parser: 12/15] composetable: Ignore length 1 sequences
- Date: Wed, 14 Jul 2021 02:05:57 +0000 (UTC)
commit 1cff4bb27ae2abe421a062c6ea8c1fda56151425
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jul 7 23:22:23 2021 -0400
composetable: Ignore length 1 sequences
It turns out that the X11 Compose file has some
length 1 sequences which are not interesting to us.
gtk/gtkcomposetable.c | 6 ++++++
1 file changed, 6 insertions(+)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]