timing
This commit is contained in:
parent
6bdda64546
commit
b9d9d6ad91
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user