]> git.eshelyaron.com Git - emacs.git/commitdiff
(get_composition_id): Pay attention to TAB
authorKenichi Handa <handa@m17n.org>
Mon, 16 Oct 2006 07:53:52 +0000 (07:53 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 16 Oct 2006 07:53:52 +0000 (07:53 +0000)
component.

src/composite.c

index b688c4bbde19c6471f85cb81f9fded4343f1f1d2..ea6b3708f129096e5dc44efa9a9560ff3e5bbda2 100644 (file)
@@ -366,7 +366,7 @@ get_composition_id (charpos, bytepos, nchars, prop, string)
       float leftmost = 0.0, rightmost;
 
       ch = XINT (key_contents[0]);
-      rightmost = CHAR_WIDTH (ch);
+      rightmost = ch != '\t' ? CHAR_WIDTH (ch) : 1;
 
       for (i = 1; i < glyph_len; i += 2)
        {
@@ -376,7 +376,7 @@ get_composition_id (charpos, bytepos, nchars, prop, string)
 
          rule = XINT (key_contents[i]);
          ch = XINT (key_contents[i + 1]);
-         this_width = CHAR_WIDTH (ch);
+         this_width = ch != '\t' ? CHAR_WIDTH (ch) : 1;
 
          /* A composition rule is specified by an integer value
             that encodes global and new reference points (GREF and