mirror of
https://github.com/preservim/nerdtree.git
synced 2025-12-18 12:02:05 +01:00
Simplify and make similar statements more similarer
This commit is contained in:
@@ -104,8 +104,8 @@ function! s:TreeDirNode.displayString()
|
||||
endfor
|
||||
|
||||
" Select the appropriate open/closed status indicator symbol.
|
||||
let l:padding = g:NERDTreeDirArrowExpandable ==# '' ? '' : ' '
|
||||
let l:symbol = (l:cascade[-1].isOpen ? g:NERDTreeDirArrowCollapsible : g:NERDTreeDirArrowExpandable ) . l:padding
|
||||
let l:symbol = (l:cascade[-1].isOpen ? g:NERDTreeDirArrowCollapsible : g:NERDTreeDirArrowExpandable )
|
||||
let l:symbol .= (g:NERDTreeDirArrowExpandable ==# '' ? '' : ' ')
|
||||
let l:flags = l:cascade[-1].path.flagSet.renderToString()
|
||||
|
||||
return l:symbol . l:flags . l:label
|
||||
|
||||
Reference in New Issue
Block a user