mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
fix bug when using x on the tree root
patch from Bryan Venteicher
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user