From b9d9d6ad919dd101d3e45246c37d652c071a6aad Mon Sep 17 00:00:00 2001 From: ray-x Date: Sat, 28 Jan 2023 12:35:22 +1100 Subject: [PATCH] timing --- lua/go/ts/nodes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/go/ts/nodes.lua b/lua/go/ts/nodes.lua index 65ebb84..38b45b6 100644 --- a/lua/go/ts/nodes.lua +++ b/lua/go/ts/nodes.lua @@ -127,7 +127,7 @@ M.get_all_nodes = function(query, lang, defaults, bufnr, pos_row, pos_col, ntype ulog(query, lang, defaults, pos_row, pos_col) bufnr = bufnr or api.nvim_get_current_buf() local filetime = fn.getftime(fn.expand('%')) - if nodes[bufnr] ~= nil and nodestime[bufnr] ~= nil and filetime <= nodestime[bufnr] then + if nodes[bufnr] ~= nil and nodestime[bufnr] ~= nil and filetime == nodestime[bufnr] then return nodes[bufnr] end -- ulog(bufnr, nodestime[bufnr], filetime)