diff options
| author | Kenichi Handa | 2008-06-29 14:27:16 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2008-06-29 14:27:16 +0000 |
| commit | 8e86803cbfdeecfe8684f67b056c4d91f0ad89da (patch) | |
| tree | fd4176a2f022463878835b4b8982bda2b522e685 /src/composite.c | |
| parent | baed8445dd2b64d5aaa19fcf110ae05ce591f4d6 (diff) | |
| download | emacs-8e86803cbfdeecfe8684f67b056c4d91f0ad89da.tar.gz emacs-8e86803cbfdeecfe8684f67b056c4d91f0ad89da.zip | |
(get_composition_id): Fix the width calculation for TAB.
Diffstat (limited to 'src/composite.c')
| -rw-r--r-- | src/composite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/composite.c b/src/composite.c index e59ba352511..e0ac92ee20e 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -343,7 +343,7 @@ get_composition_id (charpos, bytepos, nchars, prop, string) | |||
| 343 | { | 343 | { |
| 344 | int this_width; | 344 | int this_width; |
| 345 | ch = XINT (key_contents[i]); | 345 | ch = XINT (key_contents[i]); |
| 346 | this_width = CHAR_WIDTH (ch); | 346 | this_width = (ch == '\t' ? 1 : CHAR_WIDTH (ch)); |
| 347 | if (cmp->width < this_width) | 347 | if (cmp->width < this_width) |
| 348 | cmp->width = this_width; | 348 | cmp->width = this_width; |
| 349 | } | 349 | } |