Merge pull request #251 from pendulm/master

fix typo and smart close single child directory
This commit is contained in:
Martin Grenfell
2014-06-27 19:25:48 +01:00
4 changed files with 20 additions and 11 deletions

View File

@@ -500,7 +500,7 @@ function! s:TreeDirNode.toggleOpen(...)
if self.isOpen ==# 1
call self.close()
else
if g:NERDTreeCasadeOpenSingleChildDir == 0
if g:NERDTreeCascadeOpenSingleChildDir == 0
call self.open(opts)
else
call self.openAlong(opts)