From 5299967551f26c1b6e192a71ca6fba17f055d869 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 1 Dec 2025 13:19:27 +0800 Subject: [PATCH] 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 --- src/nvim/eval/userfunc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/eval/userfunc.c b/src/nvim/eval/userfunc.c index bf6e946148..2919a9178a 100644 --- 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.