Revert "Use different arrow characters for compatibility."

This reverts commit f6cad7e957.
This commit is contained in:
Martin Grenfell 2015-05-02 11:29:43 +01:00
parent 186f817f5a
commit f8499462c5
4 changed files with 10 additions and 10 deletions

View File

@ -98,7 +98,7 @@ endfunction
"FUNCTION: nerdtree#treeMarkupReg(dir) {{{2
function! nerdtree#treeMarkupReg()
if g:NERDTreeDirArrows
return '^\([▼▶] \| \+[▼▶] \| \+\)'
return '^\([▾▸] \| \+[▾▸] \| \+\)'
endif
return '^[ `|]*[\-+~]'

View File

@ -383,13 +383,13 @@ function! s:TreeFileNode._renderToString(depth, drawText, vertMap, isLastChild)
if self.path.isDirectory
if self.isOpen
if g:NERDTreeDirArrows
let treeParts = treeParts . ' '
let treeParts = treeParts . ' '
else
let treeParts = treeParts . '~'
endif
else
if g:NERDTreeDirArrows
let treeParts = treeParts . ' '
let treeParts = treeParts . ' '
else
let treeParts = treeParts . '+'
endif

View File

@ -51,7 +51,7 @@ function! s:UI.getPath(ln)
if !g:NERDTreeDirArrows
" in case called from outside the tree
if line !~# '^ *[|`▶▼ ]' || line =~# '^$'
if line !~# '^ *[|`▸▾ ]' || line =~# '^$'
return {}
endif
endif
@ -159,9 +159,9 @@ endfunction
"FUNCTION: s:UI._indentLevelFor(line) {{{2
function! s:UI._indentLevelFor(line)
let level = match(a:line, '[^ \-+~▶▼`|]') / nerdtree#treeWid()
let level = match(a:line, '[^ \-+~▸▾`|]') / nerdtree#treeWid()
" check if line includes arrows
if match(a:line, '[▶▼]') > -1
if match(a:line, '[▸▾]') > -1
" decrement level as arrow uses 3 ascii chars
let level = level - 1
endif

View File

@ -23,12 +23,12 @@ syn match NERDTreeLinkDir #.*/ ->#me=e-3 containedin=NERDTreeDir
syn match NERDTreeDirSlash #/# containedin=NERDTreeDir
if g:NERDTreeDirArrows
syn match NERDTreeClosable ## containedin=NERDTreeDir,NERDTreeFile
syn match NERDTreeOpenable ## containedin=NERDTreeDir,NERDTreeFile
syn match NERDTreeClosable ## containedin=NERDTreeDir,NERDTreeFile
syn match NERDTreeOpenable ## containedin=NERDTreeDir,NERDTreeFile
syn match NERDTreeDir #[^▼▶ ].*/#
syn match NERDTreeDir #[^▾▸ ].*/#
syn match NERDTreeExecFile #^ .*\*\($\| \)# contains=NERDTreeRO,NERDTreeBookmark
syn match NERDTreeFile #^[^"\.▼▶] *[^▼▶]*# contains=NERDTreeLink,NERDTreeRO,NERDTreeBookmark,NERDTreeExecFile
syn match NERDTreeFile #^[^"\.▾▸] *[^▾▸]*# contains=NERDTreeLink,NERDTreeRO,NERDTreeBookmark,NERDTreeExecFile
"highlighting for readonly files
syn match NERDTreeRO # *\zs.*\ze \[RO\]# contains=NERDTreeIgnore,NERDTreeBookmark,NERDTreeFile