mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-10 04:13:48 -05:00
move nerdtree#treeExists.* methods into the NERDTree class
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user