summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2010-03-06 05:16:27 -0500
committerEli Zaretskii <eliz@gnu.org>2010-03-06 05:16:27 -0500
commit9dbadf5f1a700c5790837738410c06b481cd2222 (patch)
treee1458f8f2aef541b98c7df4ea2d780c5011d9fe9 /src/buffer.c
parentd23cd5eeb2993e55943d250ea8c2015da5b06a24 (diff)
parent4c83ed3d48c69e12c91a2ada2d00f4f74be2a42d (diff)
downloademacs-9dbadf5f1a700c5790837738410c06b481cd2222.tar.gz
Merge from mainline.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 4d590248e24..0c6e57d45be 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2499,7 +2499,9 @@ current buffer is cleared. */)
if (ASCII_BYTE_P (*p))
p++, pos++;
- else if (EQ (flag, Qt) && (bytes = MULTIBYTE_LENGTH (p, pend)) > 0)
+ else if (EQ (flag, Qt)
+ && ! CHAR_BYTE8_HEAD_P (*p)
+ && (bytes = MULTIBYTE_LENGTH (p, pend)) > 0)
p += bytes, pos += bytes;
else
{