summaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-11 16:16:01 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-11 16:16:01 +0100
commit977239ef52763b6e640ac632c53a57ee17e05eaa (patch)
tree1f79b94833156537d23ae874ee720027385aa5cb /src/ops.c
parent429ab1761ea9123777c9540ddb35ffa497a7e349 (diff)
downloadvim-git-977239ef52763b6e640ac632c53a57ee17e05eaa.tar.gz
patch 8.1.0722: cannot build without the virtualedit featurev8.1.0722
Problem: Cannot build without the virtualedit feature. Solution: Make getviscol2() always available.
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/ops.c b/src/ops.c
index e3df9b3a6..f836e89fb 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -2754,7 +2754,12 @@ op_insert(oparg_T *oap, long count1)
)
{
int t = getviscol2(curbuf->b_op_start_orig.col,
- curbuf->b_op_start_orig.coladd);
+#ifdef FEAT_VIRTUALEDIT
+ curbuf->b_op_start_orig.coladd
+#else
+ 0
+#endif
+ );
oap->start.col = curbuf->b_op_start_orig.col;
pre_textlen -= t - oap->start_vcol;
oap->start_vcol = t;
@@ -2771,7 +2776,12 @@ op_insert(oparg_T *oap, long count1)
)
{
int t = getviscol2(curbuf->b_op_start_orig.col,
- curbuf->b_op_start_orig.coladd);
+#ifdef FEAT_VIRTUALEDIT
+ curbuf->b_op_start_orig.coladd
+#else
+ 0
+#endif
+ );
oap->start.col = curbuf->b_op_start_orig.col;
/* reset pre_textlen to the value of OP_INSERT */
pre_textlen += bd.textlen;