mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-22 11:32:25 +08:00
Change confirmation prompt when deleting non-empty directory.
This commit is contained in:
parent
1a6c502f19
commit
f640646f2c
|
@ -163,7 +163,7 @@ function! NERDTreeDeleteNode()
|
|||
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" .
|
||||
\ "STOP! Directory is not empty! To delete, type 'yes'\n" .
|
||||
\ "" . currentNode.path.str() . ": ")
|
||||
let confirmed = choice ==# 'yes'
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user