changeset 96413:b38a7de9af46

(get_composition_id): Fix the width calculation for TAB.
author Kenichi Handa <handa@m17n.org>
date Sun, 29 Jun 2008 14:27:16 +0000
parents e8f9b8f1538f
children 37737408d4f2
files src/composite.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/composite.c	Sun Jun 29 13:56:50 2008 +0000
+++ b/src/composite.c	Sun Jun 29 14:27:16 2008 +0000
@@ -343,7 +343,7 @@
 	{
 	  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;
 	}