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

@@ -102,7 +102,7 @@ local function update_base_dir_with_filepath(filepath, bufnr)
end
end
if not vim.startswith(filepath, core.get_explorer().cwd) then
if not vim.startswith(filepath, core.get_cwd()) then
change_dir.fn(vim.fn.fnamemodify(filepath, ":p:h"))
end
end