fix bug when using x on the tree root

patch from Bryan Venteicher
This commit is contained in:
marty 2009-09-02 16:42:24 +12:00
parent 5311777308
commit d21b00c767

View File

@ -3546,7 +3546,7 @@ function! s:closeCurrentDir()
endif endif
let parent = treenode.parent let parent = treenode.parent
if parent.isRoot() if parent ==# {} || parent.isRoot()
call s:echo("cannot close tree root") call s:echo("cannot close tree root")
else else
call treenode.parent.close() call treenode.parent.close()