Smarter delimiter default (#963)

* Better default node delimiter, based on presence of +conceal feature.

* Update documentation for node delimiter.

* Fix IF logic, and remove debug statements.

* Rewrite the NERDTreeNodeDelimiter help text to reflect new behavior.

* Change "NERD tree" to "NERDTree" and fix spacing in doc file.
This commit is contained in:
Phil Runninger
2019-03-07 08:24:17 -05:00
committed by GitHub
parent e1916d6fe7
commit 288669db1f
2 changed files with 134 additions and 115 deletions

View File

@@ -87,8 +87,13 @@ let g:NERDTreeOldSortOrder = []
call s:initVariable("g:NERDTreeGlyphReadOnly", "RO")
" ASCII 7: bell non-printing character used to delimit items in the tree's nodes.
call s:initVariable("g:NERDTreeNodeDelimiter", "\x07")
if has("conceal")
call s:initVariable("g:NERDTreeNodeDelimiter", "\x07")
elseif (g:NERDTreeDirArrowExpandable == "\u00a0" || g:NERDTreeDirArrowCollapsible == "\u00a0")
call s:initVariable("g:NERDTreeNodeDelimiter", "\u00b7")
else
call s:initVariable("g:NERDTreeNodeDelimiter", "\u00a0")
endif
if !exists('g:NERDTreeStatusline')