From 0faaeb826e23b156476b99d353c1f7f1caaa5cd6 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 7 Mar 2012 14:57:52 +0100 Subject: 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) --- src/ex_cmds.c | 11 +++++++---- src/version.c | 2 ++ 2 files changed, 9 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(""); } diff --git a/src/version.c b/src/version.c index a1b588d91..0f98e04e8 100644 --- a/src/version.c +++ b/src/version.c @@ -714,6 +714,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 463, /**/ 462, /**/ -- cgit v1.2.1