From 2b70a11c5564c26a0f22f716f40a67e621170665 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Wed, 22 Oct 2008 05:31:05 +0000 Subject: [PATCH] (scan_words): Call word_boundary_p instead of comparing scripts. --- src/syntax.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/syntax.c b/src/syntax.c index eae8f360fef..8dea32b9117 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -1248,7 +1248,7 @@ scan_words (from, count) if ((code != Sword && (! words_include_escapes || (code != Sescape && code != Scharquote))) - || ! EQ (CHAR_TABLE_REF (Vchar_script_table, ch1), script)) + || word_boundary_p (ch0, ch1)) break; INC_BOTH (from, from_byte); ch0 = ch1; @@ -1301,7 +1301,7 @@ scan_words (from, count) if ((code != Sword && (! words_include_escapes || (code != Sescape && code != Scharquote))) - || ! EQ (CHAR_TABLE_REF (Vchar_script_table, ch0), script)) + || word_boundary_p (ch0, ch1)) { INC_BOTH (from, from_byte); break; -- 2.39.5