diff src/screen.c @ 2381:17bbb52ae218 vim73

Another conceal fix: cursor in wrong column when 'number' set.
author Bram Moolenaar <bram@vim.org>
date Sat, 24 Jul 2010 13:31:09 +0200
parents b47748aa3236
children 3a5ededa240a
line wrap: on
line diff
--- a/src/screen.c
+++ b/src/screen.c
@@ -4492,7 +4492,8 @@ win_line(wp, lnum, startrow, endrow, noc
 #ifdef FEAT_CONCEAL
 	/* In the cursor line and we may be concealing characters: correct
 	 * the cursor column when we reach its position. */
-	if (!did_wcol && wp == curwin && lnum == wp->w_cursor.lnum
+	if (!did_wcol && draw_state == WL_LINE
+		&& wp == curwin && lnum == wp->w_cursor.lnum
 		&& conceal_cursor_line(wp)
 		&& (int)wp->w_virtcol <= vcol + n_skip)
 	{