mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 8.1.0826: too many #ifdefs
Problem: Too many #ifdefs. Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user