move nerdtree#getTreeWinNum out of autoload

This commit is contained in:
Martin Grenfell
2015-05-02 14:31:57 +01:00
parent 973c9906f8
commit 8270b6d717
4 changed files with 16 additions and 16 deletions

View File

@@ -23,6 +23,16 @@ function! s:NERDTree.ForCurrentBuf()
endif
endfunction
"FUNCTION: s:NERDTree.GetWinNum() {{{1
"gets the nerd tree window number for this tab
function! s:NERDTree.GetWinNum()
if exists("t:NERDTreeBufName")
return bufwinnr(t:NERDTreeBufName)
else
return -1
endif
endfunction
function! s:NERDTree.New(path)
let newObj = copy(self)
let newObj.ui = g:NERDTreeUI.New(newObj)