diff options
| author | Kenichi Handa | 2006-10-16 07:53:52 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2006-10-16 07:53:52 +0000 |
| commit | 69df789ac5431a4f074640bebb513dcac7a67f6c (patch) | |
| tree | 518ff696c84604ea70b59903677be0b7dfa37fb8 /src/composite.c | |
| parent | 4bad3dc5dff0cfa199127f9bbbd4c62c3b572f38 (diff) | |
| download | emacs-69df789ac5431a4f074640bebb513dcac7a67f6c.tar.gz emacs-69df789ac5431a4f074640bebb513dcac7a67f6c.zip | |
(get_composition_id): Pay attention to TAB
component.
Diffstat (limited to 'src/composite.c')
| -rw-r--r-- | src/composite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/composite.c b/src/composite.c index b688c4bbde1..ea6b3708f12 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -366,7 +366,7 @@ get_composition_id (charpos, bytepos, nchars, prop, string) | |||
| 366 | float leftmost = 0.0, rightmost; | 366 | float leftmost = 0.0, rightmost; |
| 367 | 367 | ||
| 368 | ch = XINT (key_contents[0]); | 368 | ch = XINT (key_contents[0]); |
| 369 | rightmost = CHAR_WIDTH (ch); | 369 | rightmost = ch != '\t' ? CHAR_WIDTH (ch) : 1; |
| 370 | 370 | ||
| 371 | for (i = 1; i < glyph_len; i += 2) | 371 | for (i = 1; i < glyph_len; i += 2) |
| 372 | { | 372 | { |
| @@ -376,7 +376,7 @@ get_composition_id (charpos, bytepos, nchars, prop, string) | |||
| 376 | 376 | ||
| 377 | rule = XINT (key_contents[i]); | 377 | rule = XINT (key_contents[i]); |
| 378 | ch = XINT (key_contents[i + 1]); | 378 | ch = XINT (key_contents[i + 1]); |
| 379 | this_width = CHAR_WIDTH (ch); | 379 | this_width = ch != '\t' ? CHAR_WIDTH (ch) : 1; |
| 380 | 380 | ||
| 381 | /* A composition rule is specified by an integer value | 381 | /* A composition rule is specified by an integer value |
| 382 | that encodes global and new reference points (GREF and | 382 | that encodes global and new reference points (GREF and |