patch 8.2.2967: Vim9: crash when using two levels of partials
Problem: Vim9: crash when using two levels of partials.
Solution: Add outer_ref_T and use it in the execution context.
diff --git a/src/structs.h b/src/structs.h
index a923a35..10f1025 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1995,7 +1995,7 @@
garray_T *out_stack; // stack from outer scope
int out_frame_idx; // index of stack frame in out_stack
outer_T *out_up; // outer scope of outer scope or NULL
- int out_up_is_copy; // don't free out_up
+ partial_T *out_up_partial; // partial owning out_up or NULL
};
struct partial_S