0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 9.0.0476: varargs does not work for replacement function of substitute()

Problem:    Varargs does not work for replacement function of substitute().
Solution:   Check the varargs flag of the function. (closes #11142)
This commit is contained in:
zeertzjq
2022-09-16 12:10:03 +01:00
committed by Bram Moolenaar
parent dd674774bb
commit 48db5dafec
5 changed files with 20 additions and 14 deletions

View File

@@ -3644,7 +3644,7 @@ call_func(
if (funcexe->fe_argv_func != NULL)
// postponed filling in the arguments, do it now
argcount = funcexe->fe_argv_func(argcount, argvars,
argv_clear, fp->uf_args.ga_len);
argv_clear, fp);
if (funcexe->fe_basetv != NULL)
{