diff src/ex_cmds.c @ 4035:d828cab6964f v7.3.772

updated for version 7.3.772 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)
author Bram Moolenaar <bram@vim.org>
date Thu, 17 Jan 2013 18:34:05 +0100
parents b5103b7d9e12
children 7061704c2014
line wrap: on
line diff
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -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);
 }