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 e50b545676.

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjqandBram Moolenaar authored and GitHub committed 2025-12-01 13:19:27 +08:00
1 parent b12ba37bcd
commit 5299967551
1 file changed
+1 -1
+1 -1
View File
@@ -3943,7 +3943,7 @@ dictitem_T *get_funccal_args_var(void)
if (current_funccal == NULL) {
return NULL;
}
return (dictitem_T *)&current_funccal->fc_l_avars_var;
return (dictitem_T *)&get_funccal()->fc_l_avars_var;
}
/// List function variables, if there is a function.