summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-02-01 20:26:51 +0100
committerBram Moolenaar <Bram@vim.org>2017-02-01 20:26:51 +0100
commitc7d9eacefa319e5ac3b3b2334fda5acb126b8716 (patch)
tree1ba3f11d8a803e7d20c804050f43d2427ff88606
parentc10f0e7cb0f35eea489b038e56c87b818eee975b (diff)
downloadvim-git-c7d9eacefa319e5ac3b3b2334fda5acb126b8716.tar.gz
patch 8.0.0287: debug mode: cannot access function argumentsv8.0.0287
Problem: Cannot access the arguments of the current function in debug mode. (Luc Hermitte) Solution: use get_funccal(). (Lemonboy, closes #1432, closes #1352)
-rw-r--r--src/userfunc.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/userfunc.c b/src/userfunc.c
index 6a6cc0689..516ab4707 100644
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -3556,7 +3556,7 @@ get_funccal_args_var()
{
if (current_funccal == NULL)
return NULL;
- return &current_funccal->l_avars_var;
+ return &get_funccal()->l_avars_var;
}
/*
diff --git a/src/version.c b/src/version.c
index 4a3c971e6..ae1e48e1a 100644
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 287,
+/**/
286,
/**/
285,