From: Kenichi Handa Date: Tue, 24 Mar 1998 05:41:38 +0000 (+0000) Subject: (MULTIBYTE_BYTES_WIDTH): Set wide_column only when we X-Git-Tag: emacs-20.3~1799 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2436e1803120b1833b8386543dc51212a0a3f489;p=emacs.git (MULTIBYTE_BYTES_WIDTH): Set wide_column only when we encounter a wide-column character. --- diff --git a/src/indent.c b/src/indent.c index 265fd07f776..bd09008104c 100644 --- a/src/indent.c +++ b/src/indent.c @@ -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 \ { \