From f691b84fba95ffc24ea6725a625aa958a24ccffb Mon Sep 17 00:00:00 2001
From: Bram Moolenaar <Bram@vim.org>
Date: Sat, 24 Jul 2010 13:31:09 +0200
Subject: [PATCH] Another conceal fix: cursor in wrong column when 'number'
 set.

---
 src/screen.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/screen.c b/src/screen.c
index b7f4f408ed..70805d5214 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -4492,7 +4492,8 @@ win_line(wp, lnum, startrow, endrow, nochange)
 #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)
 	{
-- 
GitLab