mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
fixup! vim-patch:8.1.1310: named function arguments are never optional
This commit is contained in:
@@ -898,7 +898,7 @@ void call_user_func(ufunc_T *fp, int argcount, typval_T *argvars,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Init a: variables, unless none found (in lambda).
|
// Init a: variables, unless none found (in lambda).
|
||||||
// Set a:0 to "argcount".
|
// Set a:0 to "argcount" less number of named arguments, if >= 0.
|
||||||
// Set a:000 to a list with room for the "..." arguments.
|
// Set a:000 to a list with room for the "..." arguments.
|
||||||
init_var_dict(&fc->l_avars, &fc->l_avars_var, VAR_SCOPE);
|
init_var_dict(&fc->l_avars, &fc->l_avars_var, VAR_SCOPE);
|
||||||
if ((fp->uf_flags & FC_NOARGS) == 0) {
|
if ((fp->uf_flags & FC_NOARGS) == 0) {
|
||||||
|
Reference in New Issue
Block a user