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;
}
/*
diff --git a/src/version.c b/src/version.c
index 4a3c971..ae1e48e 100644
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 287,
+/**/
286,
/**/
285,