From 9a64297c6762d5950c453914e7f67347d79b0bb0 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 24 Nov 1998 03:52:08 +0000 Subject: [PATCH] (word_boundary_p): If C1 or C2 are composite characters, test their first components. --- src/category.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/category.c b/src/category.c index d858fd1e36d..734634bd6aa 100644 --- a/src/category.c +++ b/src/category.c @@ -568,6 +568,11 @@ word_boundary_p (c1, c2) Lisp_Object tail; int default_result; + if (COMPOSITE_CHAR_P (c1)) + c1 = cmpchar_component (c1, 0, 1); + if (COMPOSITE_CHAR_P (c2)) + c2 = cmpchar_component (c2, 0, 1); + if (CHAR_CHARSET (c1) == CHAR_CHARSET (c2)) { tail = Vword_separating_categories; -- 2.39.2