From 8e86803cbfdeecfe8684f67b056c4d91f0ad89da Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Sun, 29 Jun 2008 14:27:16 +0000 Subject: [PATCH] (get_composition_id): Fix the width calculation for TAB. --- src/composite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { 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; } -- 2.39.2