Mercurial > vim
comparison src/structs.h @ 24858:193cc8bd8a2f v8.2.2967
patch 8.2.2967: Vim9: crash when using two levels of partials
Commit: https://github.com/vim/vim/commit/c04f2a4cd40f32120b7a94fdea7bfa62e8640041
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 9 19:30:03 2021 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 09 Jun 2021 19:45:02 +0200 |
parents | 4bc0bda6857d |
children | f1121eb17e14 |
comparison
equal
deleted
inserted
replaced
24857:154b4b90df6b | 24858:193cc8bd8a2f |
---|---|
1993 typedef struct outer_S outer_T; | 1993 typedef struct outer_S outer_T; |
1994 struct outer_S { | 1994 struct outer_S { |
1995 garray_T *out_stack; // stack from outer scope | 1995 garray_T *out_stack; // stack from outer scope |
1996 int out_frame_idx; // index of stack frame in out_stack | 1996 int out_frame_idx; // index of stack frame in out_stack |
1997 outer_T *out_up; // outer scope of outer scope or NULL | 1997 outer_T *out_up; // outer scope of outer scope or NULL |
1998 int out_up_is_copy; // don't free out_up | 1998 partial_T *out_up_partial; // partial owning out_up or NULL |
1999 }; | 1999 }; |
2000 | 2000 |
2001 struct partial_S | 2001 struct partial_S |
2002 { | 2002 { |
2003 int pt_refcount; // reference count | 2003 int pt_refcount; // reference count |