This commit is contained in:
ray-x 2023-01-28 12:35:22 +11:00
parent 6bdda64546
commit b9d9d6ad91

View File

@ -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) ulog(query, lang, defaults, pos_row, pos_col)
bufnr = bufnr or api.nvim_get_current_buf() bufnr = bufnr or api.nvim_get_current_buf()
local filetime = fn.getftime(fn.expand('%')) 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] return nodes[bufnr]
end end
-- ulog(bufnr, nodestime[bufnr], filetime) -- ulog(bufnr, nodestime[bufnr], filetime)