1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2021-06-09 19:30:03 +02:00
parent e3f50ad640
commit c04f2a4cd4
4 changed files with 99 additions and 46 deletions

View File

@@ -1995,7 +1995,7 @@ struct outer_S {
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