]> granicus.if.org Git - vim/commitdiff
patch 8.0.0287: debug mode: cannot access function arguments v8.0.0287
authorBram Moolenaar <Bram@vim.org>
Wed, 1 Feb 2017 19:26:51 +0000 (20:26 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 1 Feb 2017 19:26:51 +0000 (20:26 +0100)
Problem:    Cannot access the arguments of the current function in debug mode.
            (Luc Hermitte)
Solution:   use get_funccal(). (Lemonboy, closes #1432, closes #1352)

src/userfunc.c
src/version.c

index 6a6cc0689387083379f7ebe802c9ed6f6f233d8c..516ab47078729fd2d2846840e09d86086a87b833 100644 (file)
@@ -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;
 }
 
 /*
index 4a3c971e6eb7ffee6aff1b1c8032bd2967a6cf83..ae1e48e1a33dc2aa4eaba093fe9802837721756c 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    287,
 /**/
     286,
 /**/