diff options
Diffstat (limited to 'src/nvim/decoration.h')
-rw-r--r-- | src/nvim/decoration.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/decoration.h b/src/nvim/decoration.h index f43002521c..92001d496d 100644 --- a/src/nvim/decoration.h +++ b/src/nvim/decoration.h @@ -100,6 +100,11 @@ typedef struct { int conceal_attr; TriState spell; + + // This is used to prevent removing/updating extmarks inside + // on_lines callbacks which is not allowed since it can lead to + // heap-use-after-free errors. + bool running_on_lines; } DecorState; EXTERN DecorState decor_state INIT(= { 0 }); |