diff options
| author | Thomas Vigouroux <tomvig38@gmail.com> | 2020-11-23 19:46:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-23 12:46:27 -0600 |
| commit | 808765a6c8cde93621f656fa61b0c6223928f51e (patch) | |
| tree | cbbe64a1649317e870297f86d89f222238a51c0a /lua/nvim-treesitter/query.lua | |
| parent | 3c07232d076d3f62919ffe1dc16409addaae82f2 (diff) | |
fix: update interface following languagetree merge (#687)
Diffstat (limited to 'lua/nvim-treesitter/query.lua')
| -rw-r--r-- | lua/nvim-treesitter/query.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/query.lua b/lua/nvim-treesitter/query.lua index 4cb5993b..11e5ce97 100644 --- a/lua/nvim-treesitter/query.lua +++ b/lua/nvim-treesitter/query.lua @@ -179,7 +179,7 @@ function M.iter_group_results(bufnr, query_group, root) local parser = parsers.get_parser(bufnr, lang) if not parser then return function() end end - local root = root or parser:parse():root() + local root = root or parser:parse()[1]:root() local start_row, _, end_row, _ = root:range() -- The end row is exclusive so we need to add 1 to it. |
