fix a bug with refreshing after copying

This commit is contained in:
Martin Grenfell 2008-06-03 21:38:45 +12:00
parent ce9fece626
commit 7a1dbcbdb0

View File

@ -169,7 +169,7 @@ endfunction
function! s:oTreeFileNode.Copy(dest) dict
call self.path.Copy(a:dest)
let newPath = s:oPath.New(a:dest)
let parentNode = t:NERDTreeRoot.FindNode(newPath.GetDir())
let parentNode = t:NERDTreeRoot.FindNode(newPath.GetParent())
if !empty(parentNode)
call parentNode.Refresh()
endif