diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-03-07 14:57:52 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-03-07 14:57:52 +0100 |
commit | 0faaeb826e23b156476b99d353c1f7f1caaa5cd6 (patch) | |
tree | 3a7a012e0e1e7a279b053f919e685d859741b2d9 /src/ex_cmds.c | |
parent | d25ad65a974229c876700f52121e902118e24693 (diff) | |
download | vim-git-0faaeb826e23b156476b99d353c1f7f1caaa5cd6.tar.gz |
updated for version 7.3.463v7.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)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 644c32ba2..ba18d9d05 100644 --- 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(""); } |