commit | c7d9eacefa319e5ac3b3b2334fda5acb126b8716 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Feb 01 20:26:51 2017 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Feb 01 20:26:51 2017 +0100 |
tree | 1ba3f11d8a803e7d20c804050f43d2427ff88606 | |
parent | c10f0e7cb0f35eea489b038e56c87b818eee975b [diff] [blame] |
patch 8.0.0287: debug mode: cannot access function arguments Problem: Cannot access the arguments of the current function in debug mode. (Luc Hermitte) Solution: use get_funccal(). (Lemonboy, closes #1432, closes #1352)
diff --git a/src/userfunc.c b/src/userfunc.c index 6a6cc06..516ab47 100644 --- a/src/userfunc.c +++ b/src/userfunc.c
@@ -3556,7 +3556,7 @@ { if (current_funccal == NULL) return NULL; - return ¤t_funccal->l_avars_var; + return &get_funccal()->l_avars_var; } /*