diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-01-17 18:34:05 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-01-17 18:34:05 +0100 |
commit | 8c4fbd1a153245fd3c496507693140c0e8e2f260 (patch) | |
tree | 1e234dae56e2c5cd2239e9bc994c72ab90512ce0 | |
parent | 09365025386ac6af4710517a89fe0c4ed2bc86e4 (diff) | |
download | vim-git-8c4fbd1a153245fd3c496507693140c0e8e2f260.tar.gz |
updated for version 7.3.772v7.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)
-rw-r--r-- | src/ex_cmds.c | 6 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 8 insertions, 0 deletions
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 @@ -726,6 +726,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 772, +/**/ 771, /**/ 770, |