diff options
author | Kenichi Handa <[email protected]> | 2008-06-29 14:27:16 +0000 |
---|---|---|
committer | Kenichi Handa <[email protected]> | 2008-06-29 14:27:16 +0000 |
commit | 8e86803cbfdeecfe8684f67b056c4d91f0ad89da (patch) | |
tree | fd4176a2f022463878835b4b8982bda2b522e685 | |
parent | baed8445dd2b64d5aaa19fcf110ae05ce591f4d6 (diff) |
(get_composition_id): Fix the width calculation for TAB.
-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 e59ba35251..e0ac92ee20 100644 --- a/src/composite.c +++ b/src/composite.c @@ -343,7 +343,7 @@ get_composition_id (charpos, bytepos, nchars, prop, string) { int this_width; ch = XINT (key_contents[i]); - this_width = CHAR_WIDTH (ch); + this_width = (ch == '\t' ? 1 : CHAR_WIDTH (ch)); if (cmp->width < this_width) cmp->width = this_width; } |