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)
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("");
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 463,
/**/
462,
/**/