Merge pull request #79 from AndrewRadev/master

Fix for an error when copying nodes
This commit is contained in:
Martin Grenfell 2011-07-08 23:35:10 -07:00
commit c08d7e9f19

View File

@ -866,8 +866,10 @@ function! s:TreeFileNode.copy(dest)
let parent = b:NERDTreeRoot.findNode(newPath.getParent()) let parent = b:NERDTreeRoot.findNode(newPath.getParent())
if !empty(parent) if !empty(parent)
call parent.refresh() call parent.refresh()
return parent.findNode(newPath)
else
return {}
endif endif
return parent.findNode(newPath)
endfunction endfunction
"FUNCTION: TreeFileNode.delete {{{3 "FUNCTION: TreeFileNode.delete {{{3