neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 758e6db06c0b59bdbd05d14075138e5fe832d3dc
parent a9a4c271b13fffba2a21567c86b0f40ae4c180a1
Author: Jan Edmund Lazo <jan.lazo@mail.utoronto.ca>
Date:   Fri,  1 Aug 2025 21:53:01 -0400

vim-patch:8.2.0512: Vim9: no optional arguments in func type

Problem:    Vim9: no optional arguments in func type.
Solution:   Check for question mark after type.  Find function reference
            without function().

https://github.com/vim/vim/commit/5deeb3f1f9db4eabd36e99cbf857fe376eb37e10

Co-authored-by: Bram Moolenaar <Bram@vim.org>

Diffstat:
Msrc/nvim/eval/typval_defs.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nvim/eval/typval_defs.h b/src/nvim/eval/typval_defs.h @@ -326,7 +326,7 @@ struct ufunc { int uf_flags; int uf_calls; ///< nr of active calls bool uf_cleared; ///< func_clear() was already called - garray_T uf_args; ///< arguments + garray_T uf_args; ///< arguments, including optional arguments garray_T uf_def_args; ///< default argument expressions garray_T uf_lines; ///< function lines int uf_profiling; ///< true when func is being profiled