mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-05 03:20:39 -08:00
(compute_motion): Ignore the display table entry for a
base leading code when dealing with multibyte characters.
This commit is contained in:
parent
3c19e6c145
commit
39ffc6175d
1 changed files with 2 additions and 1 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue