aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-04-20 07:08:40 +0000
committerRichard M. Stallman1998-04-20 07:08:40 +0000
commit7e79b8e08ddba0ad1080eb1edd6bad679be3b975 (patch)
tree875ad9573b0758e9dc9dac1c41a8432cb389f781 /src
parent88162676bc7db9d2ed94600658d15d1ba937850e (diff)
downloademacs-7e79b8e08ddba0ad1080eb1edd6bad679be3b975.tar.gz
emacs-7e79b8e08ddba0ad1080eb1edd6bad679be3b975.zip
(copy_text): Count down bytes_left properly
in multibyte to unibyte case.
Diffstat (limited to 'src')
-rw-r--r--src/insdel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/insdel.c b/src/insdel.c
index 39c76d03dfe..030b87385bd 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -707,7 +707,7 @@ copy_text (from_addr, to_addr, nbytes,
707 c = STRING_CHAR_AND_LENGTH (from_addr, bytes_left, thislen); 707 c = STRING_CHAR_AND_LENGTH (from_addr, bytes_left, thislen);
708 *to_addr++ = SINGLE_BYTE_CHAR_P (c) ? c : (c & 0177) + 0200; 708 *to_addr++ = SINGLE_BYTE_CHAR_P (c) ? c : (c & 0177) + 0200;
709 from_addr += thislen; 709 from_addr += thislen;
710 bytes_left--; 710 bytes_left -= thislen;
711 nchars++; 711 nchars++;
712 } 712 }
713 return nchars; 713 return nchars;