Mercurial > vim
diff src/screen.c @ 504:35cde31bdcbd
updated for version 7.0141
author | vimboss |
---|---|
date | Mon, 05 Sep 2005 22:11:52 +0000 |
parents | ce2181d14aa0 |
children | a1059cda45f2 |
line wrap: on
line diff
--- a/src/screen.c +++ b/src/screen.c @@ -3026,7 +3026,7 @@ win_line(wp, lnum, startrow, endrow) } #endif - off = (unsigned) (current_ScreenLine - ScreenLines); + off = (unsigned)(current_ScreenLine - ScreenLines); col = 0; #ifdef FEAT_RIGHTLEFT if (wp->w_p_rl) @@ -3423,13 +3423,16 @@ win_line(wp, lnum, startrow, endrow) else if (mb_l > 1) mb_c = (c << 8) + p_extra[1]; } + if (mb_l == 0) /* at the NUL at end-of-line */ + mb_l = 1; + /* If a double-width char doesn't fit display a '>' in the * last column. */ - if ( + if (( # ifdef FEAT_RIGHTLEFT wp->w_p_rl ? (col <= 0) : # endif - (col >= W_WIDTH(wp) - 1) + (col >= W_WIDTH(wp) - 1)) && (*mb_char2cells)(mb_c) == 2) { c = '>';