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)

c7d9eacefa

This patch was regressed in e50b545676.

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq
2025-12-01 13:19:27 +08:00
committed by GitHub
parent b12ba37bcd
commit 5299967551

View File

@@ -3943,7 +3943,7 @@ dictitem_T *get_funccal_args_var(void)
if (current_funccal == NULL) { if (current_funccal == NULL) {
return 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. /// List function variables, if there is a function.