Mercurial > emacs
changeset 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 | ec21f1e8ca97 |
children | 47b395dd6f2c |
files | src/buffer.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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; } }