mirror of
https://github.com/vim/vim.git
synced 2025-10-01 04:54:07 -04:00
updated for version 7.0-041
This commit is contained in:
12
src/eval.c
12
src/eval.c
@@ -16465,9 +16465,12 @@ list2fpos(arg, posp, fnump)
|
|||||||
long i = 0;
|
long i = 0;
|
||||||
long n;
|
long n;
|
||||||
|
|
||||||
/* List must be: [fnum, lnum, col, coladd] */
|
/* List must be: [fnum, lnum, col, coladd], where "fnum" is only there
|
||||||
if (arg->v_type != VAR_LIST || l == NULL
|
* when "fnump" isn't NULL and "coladd" is optional. */
|
||||||
|| l->lv_len != (fnump == NULL ? 3 : 4))
|
if (arg->v_type != VAR_LIST
|
||||||
|
|| l == NULL
|
||||||
|
|| l->lv_len < (fnump == NULL ? 2 : 3)
|
||||||
|
|| l->lv_len > (fnump == NULL ? 3 : 4))
|
||||||
return FAIL;
|
return FAIL;
|
||||||
|
|
||||||
if (fnump != NULL)
|
if (fnump != NULL)
|
||||||
@@ -16493,7 +16496,8 @@ list2fpos(arg, posp, fnump)
|
|||||||
#ifdef FEAT_VIRTUALEDIT
|
#ifdef FEAT_VIRTUALEDIT
|
||||||
n = list_find_nr(l, i, NULL);
|
n = list_find_nr(l, i, NULL);
|
||||||
if (n < 0)
|
if (n < 0)
|
||||||
return FAIL;
|
posp->coladd = 0;
|
||||||
|
else
|
||||||
posp->coladd = n;
|
posp->coladd = n;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -666,6 +666,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
41,
|
||||||
/**/
|
/**/
|
||||||
40,
|
40,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user