aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/languagetree.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2023-05-01 10:32:29 +0100
committerGitHub <noreply@github.com>2023-05-01 10:32:29 +0100
commit26cc946226d96bf6b474d850b961e1060346c96f (patch)
tree9c4239bddffe34ba1f9e7bb733bdf3bc4584a03f /runtime/lua/vim/treesitter/languagetree.lua
parent37dd818722c50a5dbe0771a88a1cdaf98d9596b5 (diff)
downloadrneovim-26cc946226d96bf6b474d850b961e1060346c96f.tar.gz
rneovim-26cc946226d96bf6b474d850b961e1060346c96f.tar.bz2
rneovim-26cc946226d96bf6b474d850b961e1060346c96f.zip
fix(treesitter): foldexpr tweaks
Some small general fixes found working on developing async parsing.
Diffstat (limited to 'runtime/lua/vim/treesitter/languagetree.lua')
-rw-r--r--runtime/lua/vim/treesitter/languagetree.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/treesitter/languagetree.lua b/runtime/lua/vim/treesitter/languagetree.lua
index 19cea32367..1adf6759fa 100644
--- a/runtime/lua/vim/treesitter/languagetree.lua
+++ b/runtime/lua/vim/treesitter/languagetree.lua
@@ -262,7 +262,7 @@ function LanguageTree:parse()
tcall(self._parser.parse, self._parser, self._trees[i], self._source, true)
-- Pass ranges if this is an initial parse
- local cb_changes = self._trees[i] and tree_changes or ranges
+ local cb_changes = self._trees[i] and tree_changes or tree:included_ranges(true)
self:_do_callback('changedtree', cb_changes, tree)
self._trees[i] = tree