From 776aeef26f375cbf788942ebda92c74e818ce880 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sun, 8 Jun 2008 20:53:43 +1200 Subject: [PATCH] bugfix for oTreeFileNode#MakeRoot() if MakeRoot is called for a file, make sure that the nodes parent is initialized --- plugin/NERD_tree.vim | 1 + 1 file changed, 1 insertion(+) 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