Mercurial > emacs
diff src/buffer.c @ 88453:4e78ee207f40
(Fset_buffer_multibyte): Fix 8-bit char handling.
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Tue, 07 May 2002 04:49:50 +0000 |
| parents | 8a0cda2f3c85 |
| children | e3a506b5f300 |
line wrap: on
line diff
--- a/src/buffer.c Tue May 07 04:49:14 2002 +0000 +++ b/src/buffer.c Tue May 07 04:49:50 2002 +0000 @@ -2089,7 +2089,7 @@ p++, pos++; else if (CHAR_BYTE8_HEAD_P (*p)) { - c = STRING_CHAR (p, stop - pos); + c = STRING_CHAR_AND_LENGTH (p, stop - pos, bytes); /* Delete all bytes for this 8-bit character but the last one, and change the last one to the charcter code. */ @@ -2176,6 +2176,7 @@ zv += bytes; if (pos <= pt) pt += bytes; + pend = Z_ADDR; stop = Z; } }
