From: Bram Moolenaar Date: Thu, 17 Jan 2013 17:34:05 +0000 (+0100) Subject: updated for version 7.3.772 X-Git-Tag: v7.3.772 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c4fbd1a153245fd3c496507693140c0e8e2f260;p=vim 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) --- diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 712ba4ff9..acb4da28d 100644 --- 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); } diff --git a/src/version.c b/src/version.c index f071eb962..8b9a2414b 100644 --- a/src/version.c +++ b/src/version.c @@ -725,6 +725,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 772, /**/ 771, /**/