Mercurial > vim
diff src/screen.c @ 758:d591d4ceeaee
updated for version 7.0224
author | vimboss |
---|---|
date | Tue, 14 Mar 2006 23:00:46 +0000 |
parents | afac7b58ed46 |
children | f0d0d3d3a1e2 |
line wrap: on
line diff
--- a/src/screen.c +++ b/src/screen.c @@ -4273,9 +4273,15 @@ win_line(wp, lnum, startrow, endrow, noc #ifdef FEAT_SYN_HL /* Highlight 'cursorcolumn' past end of the line. */ + if (wp->w_p_wrap) + v = wp->w_skipcol; + else + v = wp->w_leftcol; + if (vcol < v) /* line ends before left margin */ + vcol = v; if (wp->w_p_cuc && (int)wp->w_virtcol >= vcol - && (int)wp->w_virtcol < W_WIDTH(wp) + && (int)wp->w_virtcol < W_WIDTH(wp) + v && lnum != wp->w_cursor.lnum # ifdef FEAT_RIGHTLEFT && !wp->w_p_rl