Mercurial > vim
diff src/ops.c @ 15428:eae582bfb293 v8.1.0722
patch 8.1.0722: cannot build without the virtualedit feature
commit https://github.com/vim/vim/commit/977239ef52763b6e640ac632c53a57ee17e05eaa
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 11 16:16:01 2019 +0100
patch 8.1.0722: cannot build without the virtualedit feature
Problem: Cannot build without the virtualedit feature.
Solution: Make getviscol2() always available.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 11 Jan 2019 16:30:05 +0100 |
parents | b55b89692fd2 |
children | 55ccc2d353bd |
line wrap: on
line diff
--- 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;