bugfix for oTreeFileNode#MakeRoot()
if MakeRoot is called for a file, make sure that the nodes parent is initialized
This commit is contained in:
parent
1d6516b96d
commit
776aeef26f
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user