From eef8a7b280ad8a98b7b7554945807e114a6458c8 Mon Sep 17 00:00:00 2001 From: marty Date: Wed, 19 Aug 2009 02:06:11 +1200 Subject: [PATCH] bugfix in fs_menu plugin --- 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 7522a0e..850e818 100644 --- a/nerdtree_plugin/fs_menu.vim +++ b/nerdtree_plugin/fs_menu.vim @@ -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)