From 7a1dbcbdb017380246017854861cb3dd14f150fc Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Tue, 3 Jun 2008 21:38:45 +1200 Subject: [PATCH] fix a bug with refreshing after copying --- plugin/NERD_tree.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index cfe1a72..b6f2fd0 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -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