summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 13ed6b0a1d..7633d54200 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -4520,6 +4520,9 @@ get_address(ptr, addr_type, skip, to_other_file)
pos.col = MAXCOL;
else
pos.col = 0;
+#ifdef FEAT_VIRTUALEDIT
+ pos.coladd = 0;
+#endif
if (searchit(curwin, curbuf, &pos,
*cmd == '?' ? BACKWARD : FORWARD,
(char_u *)"", 1L, SEARCH_MSG,