From: Richard M. Stallman Date: Mon, 15 Sep 1997 19:51:28 +0000 (+0000) Subject: (compute_motion): Ignore the display table entry for a X-Git-Tag: emacs-20.1~10 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=39ffc6175d25bf68c470ea02c38ed8159228f67f;p=emacs.git (compute_motion): Ignore the display table entry for a base leading code when dealing with multibyte characters. --- 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++;