mirror of
https://github.com/neovim/neovim.git
synced 2025-12-12 09:32:39 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user