changeset 23755:63628f8fe648

(word_boundary_p): If C1 or C2 are composite characters, test their first components.
author Kenichi Handa <handa@m17n.org>
date Tue, 24 Nov 1998 03:52:08 +0000
parents 53a4f2e0fccc
children 7a9b0b88448e
files src/category.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/category.c	Mon Nov 23 15:15:09 1998 +0000
+++ b/src/category.c	Tue Nov 24 03:52:08 1998 +0000
@@ -568,6 +568,11 @@
   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;