diff options
author | Pham Huy Hoang <hoangtun0810@gmail.com> | 2023-12-01 01:37:42 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-30 10:37:42 -0600 |
commit | f5573fba3d460ddf479826b7404e568cc825ed57 (patch) | |
tree | c3404415458d5d9983bde4ff77e1fc3cd2e2ad83 /runtime/lua/vim/version.lua | |
parent | 758fdc287d7a3382c22f6e1270a87e7f7fd3fadf (diff) | |
download | rneovim-f5573fba3d460ddf479826b7404e568cc825ed57.tar.gz rneovim-f5573fba3d460ddf479826b7404e568cc825ed57.tar.bz2 rneovim-f5573fba3d460ddf479826b7404e568cc825ed57.zip |
fix: Remove nested for_each_tree in TSTreeView (#26328)
Problem:
`LanguageTree:for_each_tree` calls itself for child nodes, so when we
calls `for_each_tree` inside `for_each_tree`, this quickly leads to
exponential tree calls.
Solution:
Use `pairs(child:trees())` directly in this case, as we don't need the
extra callback for each children, this is already handled from the outer
`for_each_tree` call
Diffstat (limited to 'runtime/lua/vim/version.lua')
0 files changed, 0 insertions, 0 deletions