]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.801 v7.3.801
authorBram Moolenaar <Bram@vim.org>
Wed, 6 Feb 2013 12:38:02 +0000 (13:38 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 6 Feb 2013 12:38:02 +0000 (13:38 +0100)
Problem:    ":window set nu?" displays the cursor line. (Nazri Ramliy)
Solution:   Do not update the cursor line when conceallevel is zero or the
            screen has scrolled. (partly by Christian Brabandt)

src/version.c
src/window.c

index af8210a9df640fb20a4916ab2b5fd92b668bd40f..69184b05ad3de90a1366bb423f6050b62b869b76 100644 (file)
@@ -725,6 +725,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    801,
 /**/
     800,
 /**/
index b5d4afd2b4702ca6bfb0573d4c0ff8dc652412dd..1a09c9145c57399b52e410c737955263a2d286ac 100644 (file)
@@ -3991,9 +3991,10 @@ win_goto(wp)
 
 #ifdef FEAT_CONCEAL
     /* Conceal cursor line in previous window, unconceal in current window. */
-    if (win_valid(owp))
+    if (win_valid(owp) && owp->w_p_cole > 0 && !msg_scrolled)
        update_single_line(owp, owp->w_cursor.lnum);
-    update_single_line(curwin, curwin->w_cursor.lnum);
+    if (curwin->w_p_cole > 0 && !msg_scrolled)
+       need_cursor_line_redraw = TRUE;
 #endif
 }