From b064b60984fbbe019c8b173b26d1fcd0a4e4df04 Mon Sep 17 00:00:00 2001 From: Weng Xuetian Date: Sat, 14 May 2022 01:11:32 -0700 Subject: Do not clear sibling entries when override. lokid and hikid actually stores the sibling to current node, which should not be cleared when override. This would break the sequence with a common prefix when override another. Fix #286 Signed-off-by: Weng Xuetian --- src/compose/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/compose/parser.c b/src/compose/parser.c index 69abc49..0bd4571 100644 --- a/src/compose/parser.c +++ b/src/compose/parser.c @@ -387,7 +387,7 @@ add_production(struct xkb_compose_table *table, struct scanner *s, } else if (!last) { if (node->is_leaf) { scanner_warn(s, "a sequence already exists which is a prefix of this sequence; overriding"); - node->internal.eqkid = node->lokid = node->hikid = 0; + node->internal.eqkid = 0; node->internal.is_leaf = false; } lhs_pos++; -- cgit v1.2.1