mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-22 13:12:40 +08:00
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…
Reference in New Issue
Block a user