From 51ca6a5069d55d8ea658873cd11081a3658bdf24 Mon Sep 17 00:00:00 2001 From: Thomas Vigouroux Date: Sun, 19 Apr 2020 14:55:08 +0200 Subject: fix(matches): better storage of nodes --- lua/nvim-treesitter/query.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/nvim-treesitter/query.lua b/lua/nvim-treesitter/query.lua index be650c795..e9f671f93 100644 --- a/lua/nvim-treesitter/query.lua +++ b/lua/nvim-treesitter/query.lua @@ -54,7 +54,7 @@ function M.iter_prepared_matches(query, qnode, bufnr, start_row, end_row) local name = query.captures[id] -- name of the capture in the query if name ~= nil then local path = split(name) - insert_to_path(prepared_match, path, node) + insert_to_path(prepared_match, path, { node=node }) end end -- cgit v1.2.3-70-g09d2