From: Kenichi Handa Date: Sun, 29 Jun 2008 14:27:16 +0000 (+0000) Subject: (get_composition_id): Fix the width calculation for TAB. X-Git-Tag: emacs-pretest-23.0.90~4405 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8e86803cbfdeecfe8684f67b056c4d91f0ad89da;p=emacs.git (get_composition_id): Fix the width calculation for TAB. --- 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; }