1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-26 19:18:50 +00:00

(compute_motion): Ignore the display table entry for a

base leading code when dealing with multibyte characters.
This commit is contained in:
Richard M. Stallman 1997-09-15 19:51:28 +00:00
parent 3c19e6c145
commit 39ffc6175d

View File

@ -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++;