From 8c4fbd1a153245fd3c496507693140c0e8e2f260 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 17 Jan 2013 18:34:05 +0100 Subject: [PATCH] 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) --- src/ex_cmds.c | 6 ++++++ src/version.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 712ba4ff9d..acb4da28dd 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 f071eb9621..8b9a2414b1 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, /**/