add NERDTree.getroot()

Eventually 'root' will become a "private" instance var '_root'
This commit is contained in:
Martin Grenfell 2015-11-20 16:15:39 +00:00
parent c4f8681b77
commit a60bd34a33

View File

@ -122,6 +122,11 @@ function! s:NERDTree.ForCurrentTab()
return getbufvar(bufnr, "NERDTree")
endfunction
"FUNCTION: s:NERDTree.getRoot() {{{1
function! s:NERDTree.getRoot()
return self.root
endfunction
"FUNCTION: s:NERDTree.GetWinNum() {{{1
"gets the nerd tree window number for this tab
function! s:NERDTree.GetWinNum()