Skip to content

Commit a48166d

Browse files
authored
fix: iter_matches returns list of nodes now (#1674)
1 parent 91fe8bd commit a48166d

File tree

1 file changed

+4
-0
lines changed
  • lua/neorg/modules/core/esupports/metagen

1 file changed

+4
-0
lines changed

lua/neorg/modules/core/esupports/metagen/module.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@ module.public = {
240240

241241
for id, node in pairs(found) do
242242
local name = query.captures[id]
243+
-- node is a list in nvim 0.11+
244+
if vim.islist(node) then
245+
node = node[1]
246+
end
243247
if name == "meta" then
244248
metadata_node = node
245249
range[1], _, range[2], _ = node:range()

0 commit comments

Comments
 (0)