fix: allow suppressing a symlink that links to a folder

This commit is contained in:
kiyan
2021-08-28 14:59:30 +02:00
parent d705feda5a
commit 79b968217e

View File

@@ -260,7 +260,7 @@ function M.remove(node)
local ans = utils.get_user_input_char()
utils.clear_prompt()
if ans:match('^y') then
if node.entries ~= nil then
if node.entries ~= nil and not node.link_to then
local success = remove_dir(node.absolute_path)
if not success then
return api.nvim_err_writeln('Could not remove '..node.name)