mirror of
https://github.com/vim/vim.git
synced 2025-09-03 21:23:48 -04:00
patch 9.0.0420: function went missing
Problem: Function went missing. Solution: Add the function back.
This commit is contained in:
parent
169003289f
commit
c572ad508f
@ -703,6 +703,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 */
|
||||||
|
/**/
|
||||||
|
420,
|
||||||
/**/
|
/**/
|
||||||
419,
|
419,
|
||||||
/**/
|
/**/
|
||||||
|
@ -1684,6 +1684,27 @@ compile_eval(char_u *arg, cctx_T *cctx)
|
|||||||
return skipwhite(p);
|
return skipwhite(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Get the local variable index for deferred function calls.
|
||||||
|
* Reserve it when not done already.
|
||||||
|
* Returns zero for failure.
|
||||||
|
*/
|
||||||
|
int
|
||||||
|
get_defer_var_idx(cctx_T *cctx)
|
||||||
|
{
|
||||||
|
dfunc_T *dfunc = ((dfunc_T *)def_functions.ga_data)
|
||||||
|
+ cctx->ctx_ufunc->uf_dfunc_idx;
|
||||||
|
if (dfunc->df_defer_var_idx == 0)
|
||||||
|
{
|
||||||
|
lvar_T *lvar = reserve_local(cctx, (char_u *)"@defer@", 7,
|
||||||
|
TRUE, &t_list_any);
|
||||||
|
if (lvar == NULL)
|
||||||
|
return 0;
|
||||||
|
dfunc->df_defer_var_idx = lvar->lv_idx + 1;
|
||||||
|
}
|
||||||
|
return dfunc->df_defer_var_idx;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Compile "defer func(arg)".
|
* Compile "defer func(arg)".
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user