mirror of
https://github.com/kevinhwang91/nvim-ufo
synced 2024-09-16 14:14:02 +02:00
fix: explicitly declare old behavior for treesitter iter_matches (#247)
This commit is contained in:
parent
b23a46aa06
commit
5525f422d4
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ local function iterFoldMatches(bufnr, parser, root, rootLang)
|
|||
return function() end
|
||||
end
|
||||
---@diagnostic disable-next-line: need-check-nil
|
||||
local iter = q:iter_matches(p.root, p.source, p.start, p.stop)
|
||||
local iter = q:iter_matches(p.root, p.source, p.start, p.stop, { all = false })
|
||||
return function()
|
||||
local pattern, match, metadata = iter()
|
||||
local matches = {}
|
||||
|
|
Loading…
Reference in a new issue