bugfix for oTreeFileNode#MakeRoot()

if MakeRoot is called for a file, make sure that the nodes parent is
initialized
This commit is contained in:
Martin Grenfell 2008-06-08 20:53:43 +12:00
parent 1d6516b96d
commit 776aeef26f

View File

@ -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