comparison src/netbeans.c @ 15636:6f1c7e9a6393 v8.1.0826

patch 8.1.0826: too many #ifdefs commit https://github.com/vim/vim/commit/29ddebef4038d2d2b3bc9d8d3b0109f4046d6fbf Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 26 17:28:26 2019 +0100 patch 8.1.0826: too many #ifdefs Problem: Too many #ifdefs. Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
author Bram Moolenaar <Bram@vim.org>
date Sat, 26 Jan 2019 17:30:15 +0100
parents dd725a8ab112
children 7fad90423bd2
comparison
equal deleted inserted replaced
15635:c51d2a06f5f9 15636:6f1c7e9a6393
3342 linenr_T lnum; 3342 linenr_T lnum;
3343 static pos_T pos; 3343 static pos_T pos;
3344 3344
3345 pos.lnum = 0; 3345 pos.lnum = 0;
3346 pos.col = 0; 3346 pos.col = 0;
3347 #ifdef FEAT_VIRTUALEDIT
3348 pos.coladd = 0; 3347 pos.coladd = 0;
3349 #endif
3350 3348
3351 if (!(buf->b_ml.ml_flags & ML_EMPTY)) 3349 if (!(buf->b_ml.ml_flags & ML_EMPTY))
3352 { 3350 {
3353 if ((lnum = ml_find_line_or_offset(buf, (linenr_T)0, &offset)) < 0) 3351 if ((lnum = ml_find_line_or_offset(buf, (linenr_T)0, &offset)) < 0)
3354 return NULL; 3352 return NULL;
3376 if (**argp == '/') 3374 if (**argp == '/')
3377 { 3375 {
3378 mypos.lnum = (linenr_T)off; 3376 mypos.lnum = (linenr_T)off;
3379 ++*argp; 3377 ++*argp;
3380 mypos.col = strtol((char *)*argp, (char **)argp, 10); 3378 mypos.col = strtol((char *)*argp, (char **)argp, 10);
3381 #ifdef FEAT_VIRTUALEDIT
3382 mypos.coladd = 0; 3379 mypos.coladd = 0;
3383 #endif
3384 return &mypos; 3380 return &mypos;
3385 } 3381 }
3386 return off2pos(buf, off); 3382 return off2pos(buf, off);
3387 } 3383 }
3388 3384