changeset 21275:66f5ac2310fd

(MULTIBYTE_BYTES_WIDTH): Set wide_column only when we encounter a wide-column character.
author Kenichi Handa <handa@m17n.org>
date Tue, 24 Mar 1998 05:41:38 +0000
parents 4bd1566d9e1e
children e0c0f8846fb0
files src/indent.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/indent.c	Tue Mar 24 05:41:38 1998 +0000
+++ b/src/indent.c	Tue Mar 24 05:41:38 1998 +0000
@@ -293,7 +293,9 @@
 	    if (dp != 0 && VECTORP (DISP_CHAR_VECTOR (dp, ch)))		\
 	      width = XVECTOR (DISP_CHAR_VECTOR (dp, ch))->size;	\
 	    else							\
-	      wide_column = width = cmpchar_table[id]->width;		\
+	      width = cmpchar_table[id]->width;				\
+	    if (width > 1)						\
+	      wide_column = width;					\
 	  }								\
 	else								\
 	  {								\
@@ -312,7 +314,9 @@
 		       VECTORP (DISP_CHAR_VECTOR (dp, ch))))		\
 	      width = XVECTOR (DISP_CHAR_VECTOR (dp, ch))->size;	\
 	    else							\
-	      wide_column = width = WIDTH_BY_CHAR_HEAD (c);		\
+	      width = WIDTH_BY_CHAR_HEAD (c);				\
+	    if (width > 1)						\
+	      wide_column = width;					\
 	  }								\
 	else								\
 	  {								\