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

@@ -68,7 +68,7 @@ function M.set_target_win()
end
local function handle_buf_cwd(cwd)
if M.respect_buf_cwd and cwd ~= core.get_explorer().cwd then
if M.respect_buf_cwd and cwd ~= core.get_cwd() then
require("nvim-tree.actions.change-dir").fn(cwd)
end
end