diff options
| author | Richard M. Stallman | 1997-09-15 19:51:28 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-09-15 19:51:28 +0000 |
| commit | 39ffc6175d25bf68c470ea02c38ed8159228f67f (patch) | |
| tree | 06292ccbe9c54b04108a378e8ba9dcce871b4e47 /src | |
| parent | 3c19e6c145edd5dbb44b58e9452d475bc5765382 (diff) | |
| download | emacs-39ffc6175d25bf68c470ea02c38ed8159228f67f.tar.gz emacs-39ffc6175d25bf68c470ea02c38ed8159228f67f.zip | |
(compute_motion): Ignore the display table entry for a
base leading code when dealing with multibyte characters.
Diffstat (limited to 'src')
| -rw-r--r-- | src/indent.c | 3 |
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, | |||
| 1256 | } | 1256 | } |
| 1257 | } | 1257 | } |
| 1258 | 1258 | ||
| 1259 | if (dp != 0 && VECTORP (DISP_CHAR_VECTOR (dp, c))) | 1259 | if (dp != 0 && VECTORP (DISP_CHAR_VECTOR (dp, c)) |
| 1260 | && ! (multibyte && BASE_LEADING_CODE_P (c))) | ||
| 1260 | hpos += XVECTOR (DISP_CHAR_VECTOR (dp, c))->size; | 1261 | hpos += XVECTOR (DISP_CHAR_VECTOR (dp, c))->size; |
| 1261 | else if (c >= 040 && c < 0177) | 1262 | else if (c >= 040 && c < 0177) |
| 1262 | hpos++; | 1263 | hpos++; |