From d2509d279e0d725b58dddc0f76db82e17b9bc799 Mon Sep 17 00:00:00 2001 From: Mike Perri Date: Thu, 7 Jan 2016 09:53:28 -0600 Subject: [PATCH] Don't require user to type 'yes' to delete an empty directory --- nerdtree_plugin/fs_menu.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nerdtree_plugin/fs_menu.vim b/nerdtree_plugin/fs_menu.vim index 20a9fcd..dfceaf2 100644 --- a/nerdtree_plugin/fs_menu.vim +++ b/nerdtree_plugin/fs_menu.vim @@ -160,7 +160,7 @@ function! NERDTreeDeleteNode() let currentNode = g:NERDTreeFileNode.GetSelected() let confirmed = 0 - if currentNode.path.isDirectory + if currentNode.path.isDirectory && currentNode.getChildCount() > 0 let choice =input("Delete the current node\n" . \ "==========================================================\n" . \ "STOP! To delete this entire directory, type 'yes'\n" .