mirror of
https://github.com/preservim/nerdtree.git
synced 2025-01-31 10:36:48 +08:00
fix bug when using x on the tree root
patch from Bryan Venteicher
This commit is contained in:
parent
5311777308
commit
d21b00c767
|
@ -3546,7 +3546,7 @@ function! s:closeCurrentDir()
|
|||
endif
|
||||
|
||||
let parent = treenode.parent
|
||||
if parent.isRoot()
|
||||
if parent ==# {} || parent.isRoot()
|
||||
call s:echo("cannot close tree root")
|
||||
else
|
||||
call treenode.parent.close()
|
||||
|
|
Loading…
Reference in New Issue
Block a user