summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-02-07 19:56:43 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-07 19:56:43 +0000
commit7aca5ca6763e50d2c23953b20e30fca7457c9abf (patch)
treea0a1e5077975c095e06f37b668baff7f68a92230 /src/structs.h
parent92368aad613bca700877ccb1725e1cb5a80dd34a (diff)
downloadvim-git-7aca5ca6763e50d2c23953b20e30fca7457c9abf.tar.gz
patch 8.2.4322: Vim9: crash when using funcref with closurev8.2.4322
Problem: Vim9: crash when using funcref with closure. Solution: Keep a reference to the funcref that has the outer context. (closes #9716)
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h
index ecab3541d..1e759f5df 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -2051,6 +2051,9 @@ struct partial_S
// For a compiled closure: the arguments and local variables scope
outer_T pt_outer;
+ // For a partial of a partial: use pt_outer values of this partial.
+ partial_T *pt_outer_partial;
+
funcstack_T *pt_funcstack; // copy of stack, used after context
// function returns