Mercurial > emacs
changeset 21676:81bbd2c2724a
(copy_text): Count down bytes_left properly
in multibyte to unibyte case.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 20 Apr 1998 07:08:40 +0000 |
parents | f000ba659241 |
children | f42b78e033db |
files | src/insdel.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/insdel.c Mon Apr 20 07:08:17 1998 +0000 +++ b/src/insdel.c Mon Apr 20 07:08:40 1998 +0000 @@ -707,7 +707,7 @@ c = STRING_CHAR_AND_LENGTH (from_addr, bytes_left, thislen); *to_addr++ = SINGLE_BYTE_CHAR_P (c) ? c : (c & 0177) + 0200; from_addr += thislen; - bytes_left--; + bytes_left -= thislen; nchars++; } return nchars;