diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 0f172f0..e05c39a 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -308,6 +308,7 @@ function! s:oTreeFileNode.MakeRoot() dict if self.path.isDirectory let t:NERDTreeRoot = self else + call self.CacheParent() let t:NERDTreeRoot = self.parent endif