]> granicus.if.org Git - vim/commitdiff
patch 8.0.0209: cursor binding does not work with :substitute v8.0.0209
authorBram Moolenaar <Bram@vim.org>
Sat, 21 Jan 2017 13:45:09 +0000 (14:45 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 21 Jan 2017 13:45:09 +0000 (14:45 +0100)
Problem:    When using :substitute with the "c" flag and 'cursorbind' is set
            the cursor is not updated in other windows.
Solution:   Call do_check_cursorbind(). (Masanori Misono)

src/ex_cmds.c
src/version.c

index 00cac92565c11a5bc797e5aa758aab2a22540114..58a0186129e8362c6a0c04b9b7d3a74a9c695802 100644 (file)
@@ -5263,6 +5263,10 @@ do_sub(exarg_T *eap)
                    setmouse();         /* disable mouse in xterm */
 #endif
                    curwin->w_cursor.col = regmatch.startpos[0].col;
+#ifdef FEAT_CURSORBIND
+                   if (curwin->w_p_crb)
+                       do_check_cursorbind();
+#endif
 
                    /* When 'cpoptions' contains "u" don't sync undo when
                     * asking for confirmation. */
index c2a80dc5ffe054abf75a2768ec889d860364a592..e74aa5f4bcb22dd1666df7c0542aeb4337cc9ad5 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    209,
 /**/
     208,
 /**/