[gtk/wip/compose-parser] composetable: Ignore length 1 sequences
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/compose-parser] composetable: Ignore length 1 sequences
- Date: Tue, 13 Jul 2021 02:54:17 +0000 (UTC)
commit c8b7941203c387b7435683cc2364ee9ef6833fa5
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]