Mercurial > vim
changeset 3394:8e0fe5a723ad v7.3.463
updated for version 7.3.463
Problem: When using ":s///c" the cursor is moved away from the match.
(Lawman)
Solution: Don't move the cursor when do_ask is set. (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 07 Mar 2012 14:57:52 +0100 |
parents | f1f6ac67acd8 |
children | c326b6833204 |
files | src/ex_cmds.c src/version.c |
diffstat | 2 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -5151,10 +5151,13 @@ outofmem: if (!global_busy) { - if (endcolumn) - coladvance((colnr_T)MAXCOL); - else - beginline(BL_WHITE | BL_FIX); + if (!do_ask) /* when interactive leave cursor on the match */ + { + if (endcolumn) + coladvance((colnr_T)MAXCOL); + else + beginline(BL_WHITE | BL_FIX); + } if (!do_sub_msg(do_count) && do_ask) MSG(""); }