From 79b968217ebd0328787ad46baa65674bcea9cfa4 Mon Sep 17 00:00:00 2001 From: kiyan Date: Sat, 28 Aug 2021 14:59:30 +0200 Subject: [PATCH] fix: allow suppressing a symlink that links to a folder --- lua/nvim-tree/fs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-tree/fs.lua b/lua/nvim-tree/fs.lua index 152779e1..078f4a12 100644 --- a/lua/nvim-tree/fs.lua +++ b/lua/nvim-tree/fs.lua @@ -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)