changeset 10795:8afee415119d v8.0.0287

patch 8.0.0287: debug mode: cannot access function arguments commit https://github.com/vim/vim/commit/c7d9eacefa319e5ac3b3b2334fda5acb126b8716 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 1 20:26:51 2017 +0100 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)
author Christian Brabandt <cb@256bit.org>
date Wed, 01 Feb 2017 20:30:04 +0100
parents d4f210711950
children 5a722d39df70
files src/userfunc.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }
 
 /*
--- 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,