If arrows are empty strings, don't print their trailing spaces.

This commit is contained in:
Phil Runninger
2020-02-03 01:58:00 -05:00
parent 8c48845d11
commit 26333ceeab
2 changed files with 5 additions and 12 deletions

View File

@@ -321,13 +321,11 @@ function! s:TreeFileNode._renderToString(depth, drawText)
if a:drawText ==# 1
let treeParts = repeat(' ', a:depth - 1)
if !self.path.isDirectory
let treeParts = treeParts . ' '
if !self.path.isDirectory && g:NERDTreeDirArrowExpandable != ''
let treeParts .= ' '
endif
let line = treeParts . self.displayString()
let output = output . line . "\n"
endif