summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-01-10 14:02:28 +0100
committerBram Moolenaar <Bram@vim.org>2021-01-10 14:02:28 +0100
commitab360526ef653b139f4b007a0efbdb3410c8fb4b (patch)
treea843bf0a6bc3f312a36c6df8477e7c728acf307d /src/structs.h
parentcff40ff98664f4f5a9631aff1a155caf762ea74b (diff)
downloadvim-git-ab360526ef653b139f4b007a0efbdb3410c8fb4b.tar.gz
patch 8.2.2321: Vim9: cannot nest closuresv8.2.2321
Problem: Vim9: cannot nest closures. Solution: Add the nesting level to ISN_LOADOUTER and ISN_STOREOUTER. (closes #7150, closes #7635)
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h
index 9d1f82181..1ed185d5b 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1978,6 +1978,8 @@ struct partial_S
// For a compiled closure: the arguments and local variables.
garray_T *pt_ectx_stack; // where to find local vars
int pt_ectx_frame; // index of function frame in uf_ectx_stack
+ garray_T *pt_outer_stack; // pt_ectx_stack one level up
+ int pt_outer_frame; // pt_ectx_frame one level up.
funcstack_T *pt_funcstack; // copy of stack, used after context
// function returns