summaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c11
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("");
}