bugfix in fs_menu plugin

This commit is contained in:
marty 2009-08-19 02:06:11 +12:00
parent 891f0ed3a2
commit eef8a7b280

View File

@ -66,7 +66,7 @@ function! NERDTreeAddNode()
try
let newPath = g:NERDTreePath.Create(newNodeName)
let parentNode = b:NERDTreeRoot.findNode(newPath.getPathTrunk())
let parentNode = b:NERDTreeRoot.findNode(newPath.getParent())
let newTreeNode = g:NERDTreeFileNode.New(newPath)
if parentNode.isOpen || !empty(parentNode.children)