move nerdtree#treeExists.* methods into the NERDTree class

This commit is contained in:
Martin Grenfell
2014-07-17 20:27:21 +01:00
parent fd14757c04
commit c2dd750860
6 changed files with 24 additions and 20 deletions

View File

@@ -95,18 +95,6 @@ function! nerdtree#runningWindows()
return has("win16") || has("win32") || has("win64")
endfunction
" Function: nerdtree#treeExistsForBuffer() {{{2
" Returns 1 if a nerd tree root exists in the current buffer
function! nerdtree#treeExistsForBuf()
return exists("b:NERDTreeRoot")
endfunction
" Function: nerdtree#treeExistsForTab() {{{2
" Returns 1 if a nerd tree root exists in the current tab
function! nerdtree#treeExistsForTab()
return exists("t:NERDTreeBufName")
endfunction
"FUNCTION: nerdtree#treeMarkupReg(dir) {{{2
function! nerdtree#treeMarkupReg()
if g:NERDTreeDirArrows

View File

@@ -260,7 +260,7 @@ function! s:findAndRevealPath()
let g:NERDTreeShowHidden = 1
endif
if !nerdtree#treeExistsForTab()
if !g:NERDTree.ExistsForTab()
try
let cwd = g:NERDTreePath.New(getcwd())
catch /^NERDTree.InvalidArgumentsError/