summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui.c b/src/ui.c
index fbdc32535..a05490c67 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -3100,6 +3100,9 @@ get_fpos_of_mouse(mpos)
if (mpos->col > 0)
--mpos->col;
+#ifdef FEAT_VIRTUALEDIT
+ mpos->coladd = 0;
+#endif
return IN_BUFFER;
}