From b40170f7a3ca4bd157eeb52c9d57cb2ebfe3c562 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 12 Dec 2023 20:34:02 +0800 Subject: fix(lua): memory leak when using invalid syntax with exists() (#26530) --- test/functional/treesitter/fold_spec.lua | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'test/functional/treesitter') diff --git a/test/functional/treesitter/fold_spec.lua b/test/functional/treesitter/fold_spec.lua index 462661e97f..f5c1b0f3c1 100644 --- a/test/functional/treesitter/fold_spec.lua +++ b/test/functional/treesitter/fold_spec.lua @@ -639,9 +639,7 @@ t2]]) {1:│}t1 | {1:│}^ | {1:+}{2:+-- 2 lines: # h2·····················}| - {3:~ }| - {3:~ }| - {3:~ }| + {3:~ }|*3 {4:-- INSERT --} | ]]} @@ -656,10 +654,7 @@ t2]]) {1:-}^t1 | {1:-}# h2 | {1:│}t2 | - {3:~ }| - {3:~ }| - {3:~ }| - {3:~ }| + {3:~ }|*4 1 line less; before #2 {MATCH:.*}| ]]} end) -- cgit