changeset 21219:29d2cf14040a

(byte_char_debug_check): Call multibyte_chars_in_text instead of chars_in_text because we must ignore enable-multibyte-characters here.
author Kenichi Handa <handa@m17n.org>
date Thu, 19 Mar 1998 07:34:29 +0000
parents f99248b85ee8
children 8cbc0182c543
files src/marker.c
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/marker.c	Thu Mar 19 07:34:29 1998 +0000
+++ b/src/marker.c	Thu Mar 19 07:34:29 1998 +0000
@@ -105,13 +105,14 @@
 
   if (bytepos > BUF_GPT_BYTE (b))
     {
-      nchars = chars_in_text (BUF_BEG_ADDR (b),
-			      BUF_GPT_BYTE (b) - BUF_BEG_BYTE (b));
-      nchars += chars_in_text (BUF_GAP_END_ADDR (b),
-			       bytepos - BUF_GPT_BYTE (b));
+      nchars = multibyte_chars_in_text (BUF_BEG_ADDR (b),
+					BUF_GPT_BYTE (b) - BUF_BEG_BYTE (b));
+      nchars += multibyte_chars_in_text (BUF_GAP_END_ADDR (b),
+					 bytepos - BUF_GPT_BYTE (b));
     }
   else
-    nchars = chars_in_text (BUF_BEG_ADDR (b), bytepos - BUF_BEG_BYTE (b));
+    nchars = multibyte_chars_in_text (BUF_BEG_ADDR (b),
+				      bytepos - BUF_BEG_BYTE (b));
 
   if (charpos - 1 != nchars)
     abort ();