commit 5299967551f26c1b6e192a71ca6fba17f055d869
parent b12ba37bcd772adc5b99cad286757c83d6e88757
Author: zeertzjq <zeertzjq@outlook.com>
Date: Mon, 1 Dec 2025 13:19:27 +0800
vim-patch:8.0.0287: debug mode: cannot access function arguments (#36772)
Problem: Cannot access the arguments of the current function in debug mode.
(Luc Hermitte)
Solution: use get_funccal(). (Lemonboy, closes vim/vim#1432, closes vim/vim#1352)
https://github.com/vim/vim/commit/c7d9eacefa319e5ac3b3b2334fda5acb126b8716
This patch was regressed in e50b545676822eefa3ab6b00b4222cc34c5f4633.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nvim/eval/userfunc.c b/src/nvim/eval/userfunc.c
@@ -3943,7 +3943,7 @@ dictitem_T *get_funccal_args_var(void)
if (current_funccal == NULL) {
return NULL;
}
- return (dictitem_T *)¤t_funccal->fc_l_avars_var;
+ return (dictitem_T *)&get_funccal()->fc_l_avars_var;
}
/// List function variables, if there is a function.