fix: allow suppressing a symlink that links to a folder
This commit is contained in:
@@ -260,7 +260,7 @@ function M.remove(node)
|
|||||||
local ans = utils.get_user_input_char()
|
local ans = utils.get_user_input_char()
|
||||||
utils.clear_prompt()
|
utils.clear_prompt()
|
||||||
if ans:match('^y') then
|
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)
|
local success = remove_dir(node.absolute_path)
|
||||||
if not success then
|
if not success then
|
||||||
return api.nvim_err_writeln('Could not remove '..node.name)
|
return api.nvim_err_writeln('Could not remove '..node.name)
|
||||||
|
|||||||
Reference in New Issue
Block a user