rework the cascading slightly to correctly show open/closed dir arrows

This commit is contained in:
Martin Grenfell
2015-11-24 22:06:04 +00:00
parent 2cef8bb602
commit af39458989
2 changed files with 35 additions and 15 deletions

View File

@@ -337,10 +337,7 @@ function! s:TreeFileNode._renderToString(depth, drawText)
let treeParts = repeat(' ', a:depth - 1)
if self.path.isDirectory
let sym = self.isOpen ? g:NERDTreeDirArrowCollapsible : g:NERDTreeDirArrowExpandable
let treeParts = treeParts . sym . ' '
else
if !self.path.isDirectory
let treeParts = treeParts . ' '
endif