]> granicus.if.org Git - vim/commitdiff
patch 8.0.0181: with cursorbind set cursor column highlighting is off v8.0.0181
authorBram Moolenaar <Bram@vim.org>
Sat, 14 Jan 2017 13:54:33 +0000 (14:54 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 14 Jan 2017 13:54:33 +0000 (14:54 +0100)
Problem:    When 'cursorbind' and 'cursorcolumn' are both on, the column
            highlignt in non-current windows is wrong.
Solution:   Add validate_cursor(). (Masanori Misono, closes #1372)

src/move.c
src/version.c

index 912e51ccd151312f578420b58114f68429f14fca..86b19aafc3c843b24ea8c7d60385a5079e29a2b5 100644 (file)
@@ -2841,6 +2841,10 @@ do_check_cursorbind(void)
            restart_edit_save = restart_edit;
            restart_edit = TRUE;
            check_cursor();
+# ifdef FEAT_SYN_HL
+           if (curwin->w_p_cuc)
+               validate_cursor();
+# endif
            restart_edit = restart_edit_save;
 # ifdef FEAT_MBYTE
            /* Correct cursor for multi-byte character. */
index 7b576afccf5b13e69daa62fd24373be1c24f5675..9a30eaedf49abe86d2d65c2a8b411b0a0bf0a17f 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    181,
 /**/
     180,
 /**/