refacto: tree explorer root should be absolute_path not cwd

This commit is contained in:
kiyan
2022-05-29 11:40:06 +02:00
parent 3806653d75
commit 5e900c2f29
9 changed files with 12 additions and 12 deletions

View File

@@ -36,7 +36,7 @@ local function remove_overlay()
end
local function matches(node)
local path = node.cwd or node.absolute_path
local path = node.absolute_path
local name = vim.fn.fnamemodify(path, ":t")
return vim.regex(M.filter):match_str(name) ~= nil
end