]> git.eshelyaron.com Git - emacs.git/commitdiff
(MULTIBYTE_BYTES_WIDTH): Set wide_column only when we
authorKenichi Handa <handa@m17n.org>
Tue, 24 Mar 1998 05:41:38 +0000 (05:41 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 24 Mar 1998 05:41:38 +0000 (05:41 +0000)
encounter a wide-column character.

src/indent.c

index 265fd07f776bfd7caf87b140f42fe491bdd6f48e..bd09008104ca19c788d480ee50194b2547315bdc 100644 (file)
@@ -293,7 +293,9 @@ skip_invisible (pos, next_boundary_p, to, window)
            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 @@ skip_invisible (pos, next_boundary_p, to, window)
                       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                                                            \
          {                                                             \