]> git.eshelyaron.com Git - emacs.git/commitdiff
(get_composition_id): Fix the width calculation for TAB.
authorKenichi Handa <handa@m17n.org>
Sun, 29 Jun 2008 14:27:16 +0000 (14:27 +0000)
committerKenichi Handa <handa@m17n.org>
Sun, 29 Jun 2008 14:27:16 +0000 (14:27 +0000)
src/composite.c

index e59ba3525117276fac313cf8b78a889ddc755882..e0ac92ee20e8ee4bdb4e57475c660e27b380d5c7 100644 (file)
@@ -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;
        }