diff options
author | Kenichi Handa <handa@m17n.org> | 1998-03-19 07:34:29 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 1998-03-19 07:34:29 +0000 |
commit | bab9ce2f565da70ba1713b7fde72af2acb182d14 (patch) | |
tree | fd51b3a296b76de136df949e79d9c3c8bb3f2481 /src/marker.c | |
parent | 88ab3cc13356c05b284e54bff8d197b9528f8b65 (diff) | |
download | emacs-bab9ce2f565da70ba1713b7fde72af2acb182d14.tar.gz |
(byte_char_debug_check): Call multibyte_chars_in_text
instead of chars_in_text because we must ignore
enable-multibyte-characters here.
Diffstat (limited to 'src/marker.c')
-rw-r--r-- | src/marker.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/marker.c b/src/marker.c index dcdadd705ad..86951edd2f3 100644 --- a/src/marker.c +++ b/src/marker.c @@ -105,13 +105,14 @@ byte_char_debug_check (b, charpos, bytepos) 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 (); |