fix: explicitly declare old behavior for treesitter iter_matches (#247)

This commit is contained in:
ergou 2024-09-03 16:07:25 +10:00 committed by GitHub
parent b23a46aa06
commit 5525f422d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 = {}