Mercurial > vim
diff src/structs.h @ 30281:d3cfd12839ef v9.0.0476
patch 9.0.0476: varargs does not work for replacement function of substitute()
Commit: https://github.com/vim/vim/commit/48db5dafecacced4a9e42de3f92838b2d59beb4c
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri Sep 16 12:10:03 2022 +0100
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 https://github.com/vim/vim/issues/11142)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 16 Sep 2022 13:15:05 +0200 |
parents | c0f0118b6790 |
children | 61a688be1899 |
line wrap: on
line diff
--- a/src/structs.h +++ b/src/structs.h @@ -2052,13 +2052,13 @@ typedef struct // Struct passed between functions dealing with function call execution. // -// "argv_func", when not NULL, can be used to fill in arguments only when the +// "fe_argv_func", when not NULL, can be used to fill in arguments only when the // invoked function uses them. It is called like this: -// new_argcount = argv_func(current_argcount, argv, partial_argcount, -// called_func_argcount) +// new_argcount = fe_argv_func(current_argcount, argv, partial_argcount, +// called_func) // typedef struct { - int (* fe_argv_func)(int, typval_T *, int, int); + int (* fe_argv_func)(int, typval_T *, int, ufunc_T *); linenr_T fe_firstline; // first line of range linenr_T fe_lastline; // last line of range int *fe_doesrange; // if not NULL: return: function handled range