From c04f2a4cd40f32120b7a94fdea7bfa62e8640041 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 9 Jun 2021 19:30:03 +0200 Subject: 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. --- src/structs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/structs.h') diff --git a/src/structs.h b/src/structs.h index a923a35ed..10f1025c1 100644 --- a/src/structs.h +++ b/src/structs.h @@ -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 -- cgit v1.2.1