mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-10 20:33:50 -05:00
Merge pull request #79 from AndrewRadev/master
Fix for an error when copying nodes
This commit is contained in:
@@ -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()
|
||||||
endif
|
|
||||||
return parent.findNode(newPath)
|
return parent.findNode(newPath)
|
||||||
|
else
|
||||||
|
return {}
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"FUNCTION: TreeFileNode.delete {{{3
|
"FUNCTION: TreeFileNode.delete {{{3
|
||||||
|
|||||||
Reference in New Issue
Block a user