Skip to content

Commit

Permalink
Don't require user to type 'yes' to delete an empty directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeperri committed Jan 7, 2016
1 parent dd754c7 commit 8c90f57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nerdtree_plugin/fs_menu.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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" .
Expand Down

0 comments on commit 8c90f57

Please sign in to comment.