]> granicus.if.org Git - vim/commitdiff
patch 8.0.0182: cursor ilne not update when 'cursorbind' is set v8.0.0182
authorBram Moolenaar <Bram@vim.org>
Sat, 14 Jan 2017 14:52:46 +0000 (15:52 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 14 Jan 2017 14:52:46 +0000 (15:52 +0100)
Problem:    When 'cursorbind' and 'cursorline' are set, but 'cursorcolumn' is
            not, then the cursor line highlighting is not updated. (Hirohito
            Higashi)
Solution:   Call redraw_later() with NOT_VALID.

src/move.c
src/version.c

index 86b19aafc3c843b24ea8c7d60385a5079e29a2b5..5968a8b08817a4ec9b4843fdca7908baf2e280ba 100644 (file)
@@ -2851,7 +2851,7 @@ do_check_cursorbind(void)
            if (has_mbyte)
                mb_adjust_cursor();
 # endif
-           redraw_later(VALID);
+           redraw_later(curwin->w_p_cul ? NOT_VALID : VALID);
 
            /* Only scroll when 'scrollbind' hasn't done this. */
            if (!curwin->w_p_scb)
index 9a30eaedf49abe86d2d65c2a8b411b0a0bf0a17f..806e86511a815fb713d76b76aa5c6940e6567b9c 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    182,
 /**/
     181,
 /**/