summaryrefslogtreecommitdiff
path: root/src/indent.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-09-15 19:51:28 +0000
committerRichard M. Stallman <rms@gnu.org>1997-09-15 19:51:28 +0000
commit9530f95cd3f78d6212e4137437c82cc51f26ff4a (patch)
tree401180467285829c31ce756eaae407cf0b816b20 /src/indent.c
parent70b5a732b6db08694a71838ac16bb9eae569a485 (diff)
downloademacs-9530f95cd3f78d6212e4137437c82cc51f26ff4a.tar.gz
(compute_motion): Ignore the display table entry for a
base leading code when dealing with multibyte characters.
Diffstat (limited to 'src/indent.c')
-rw-r--r--src/indent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c
index a6fa7a92420..3a8cce764df 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -1256,7 +1256,8 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width,
}
}
- if (dp != 0 && VECTORP (DISP_CHAR_VECTOR (dp, c)))
+ if (dp != 0 && VECTORP (DISP_CHAR_VECTOR (dp, c))
+ && ! (multibyte && BASE_LEADING_CODE_P (c)))
hpos += XVECTOR (DISP_CHAR_VECTOR (dp, c))->size;
else if (c >= 040 && c < 0177)
hpos++;