From 29ddebef4038d2d2b3bc9d8d3b0109f4046d6fbf Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 26 Jan 2019 17:28:26 +0100 Subject: patch 8.1.0826: too many #ifdefs Problem: Too many #ifdefs. Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code. --- src/netbeans.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/netbeans.c') diff --git a/src/netbeans.c b/src/netbeans.c index b36d8680c..ecc7625e9 100644 --- a/src/netbeans.c +++ b/src/netbeans.c @@ -3344,9 +3344,7 @@ off2pos(buf_T *buf, long offset) pos.lnum = 0; pos.col = 0; -#ifdef FEAT_VIRTUALEDIT pos.coladd = 0; -#endif if (!(buf->b_ml.ml_flags & ML_EMPTY)) { @@ -3378,9 +3376,7 @@ get_off_or_lnum(buf_T *buf, char_u **argp) mypos.lnum = (linenr_T)off; ++*argp; mypos.col = strtol((char *)*argp, (char **)argp, 10); -#ifdef FEAT_VIRTUALEDIT mypos.coladd = 0; -#endif return &mypos; } return off2pos(buf, off); -- cgit v1.2.1