mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-10 04:13:48 -05:00
If arrows are empty strings, don't print their trailing spaces.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user