]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.772 v7.3.772
authorBram Moolenaar <Bram@vim.org>
Thu, 17 Jan 2013 17:34:05 +0000 (18:34 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 17 Jan 2013 17:34:05 +0000 (18:34 +0100)
Problem:    Cursor is at the wrong location and below the end of the file
            after doing substitutions with confirm flag: %s/x/y/c
            (Dominique Pelle)
Solution:   Update the cursor position. (Christian Brabandt & Dominique)

src/ex_cmds.c
src/version.c

index 712ba4ff9d6e3475caf0e76781cc947fbd678a2a..acb4da28dd5d3380ec68f8bcc964c5c784b7f0af 100644 (file)
@@ -5200,6 +5200,12 @@ outofmem:
            EMSG2(_(e_patnotf2), get_search_pat());
     }
 
+#ifdef FEAT_FOLDING
+    if (do_ask && hasAnyFolding(curwin))
+       /* Cursor position may require updating */
+       changed_window_setting();
+#endif
+
     vim_free(regmatch.regprog);
 }
 
index f071eb96216a25b3d9516bba8faec3e28b673d89..8b9a2414b18a50ec2de07722a0686b2326fc7772 100644 (file)
@@ -725,6 +725,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    772,
 /**/
     771,
 /**/