aboutsummaryrefslogtreecommitdiff
path: root/test/functional/treesitter
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-12-12 20:34:02 +0800
committerGitHub <noreply@github.com>2023-12-12 20:34:02 +0800
commitb40170f7a3ca4bd157eeb52c9d57cb2ebfe3c562 (patch)
treef7f58e7e15ee0fbd887587c19f740179d807d1b0 /test/functional/treesitter
parent1d4a5cd18537d054a564ff19b9361120597d9dd7 (diff)
downloadrneovim-b40170f7a3ca4bd157eeb52c9d57cb2ebfe3c562.tar.gz
rneovim-b40170f7a3ca4bd157eeb52c9d57cb2ebfe3c562.tar.bz2
rneovim-b40170f7a3ca4bd157eeb52c9d57cb2ebfe3c562.zip
fix(lua): memory leak when using invalid syntax with exists() (#26530)
Diffstat (limited to 'test/functional/treesitter')
-rw-r--r--test/functional/treesitter/fold_spec.lua9
1 files changed, 2 insertions, 7 deletions
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)