fix(#1500): focusing directories with a trailing slash in their path doesn't work (#1501)

This commit is contained in:
Carlos Castillo
2022-08-14 02:00:04 -03:00
committed by GitHub
parent 261a5c380c
commit b314b3a699

View File

@@ -108,7 +108,7 @@ function M.fn(node)
end
-- INFO: defer needed when reload is automatic (watchers)
vim.defer_fn(function()
utils.focus_file(new_file_path)
utils.focus_file(utils.path_remove_trailing(new_file_path))
end, 150)
end)
end