Merge pull request #751 from ashumkin/dir-arrows-on-cygwin
Introduce the "nerdtree#runningCygwin()" function.
This commit is contained in:
commit
f554c20cb2
@ -155,6 +155,11 @@ function! nerdtree#runningWindows()
|
|||||||
return has("win16") || has("win32") || has("win64")
|
return has("win16") || has("win32") || has("win64")
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
"FUNCTION: nerdtree#runningCygwin(dir) {{{2
|
||||||
|
function! nerdtree#runningCygwin()
|
||||||
|
return has("win32unix")
|
||||||
|
endfunction
|
||||||
|
|
||||||
" SECTION: View Functions {{{1
|
" SECTION: View Functions {{{1
|
||||||
"============================================================
|
"============================================================
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ call s:initVariable("g:NERDTreeShowHidden", 0)
|
|||||||
call s:initVariable("g:NERDTreeShowLineNumbers", 0)
|
call s:initVariable("g:NERDTreeShowLineNumbers", 0)
|
||||||
call s:initVariable("g:NERDTreeSortDirs", 1)
|
call s:initVariable("g:NERDTreeSortDirs", 1)
|
||||||
|
|
||||||
if !nerdtree#runningWindows()
|
if !nerdtree#runningWindows() && !nerdtree#runningCygwin()
|
||||||
call s:initVariable("g:NERDTreeDirArrowExpandable", "▸")
|
call s:initVariable("g:NERDTreeDirArrowExpandable", "▸")
|
||||||
call s:initVariable("g:NERDTreeDirArrowCollapsible", "▾")
|
call s:initVariable("g:NERDTreeDirArrowCollapsible", "▾")
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user