fix(query): explicitly opt-in to legacy behavior (#7101)

This commit is contained in:
Christian Clason 2024-08-30 15:57:07 +02:00 committed by GitHub
parent 95933209d4
commit fd9663acca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -248,7 +248,7 @@ function M.iter_prepared_matches(query, qnode, bufnr, start_row, end_row)
return t
end
local matches = query:iter_matches(qnode, bufnr, start_row, end_row)
local matches = query:iter_matches(qnode, bufnr, start_row, end_row, { all = false })
local function iterator()
local pattern, match, metadata = matches()