mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-10 04:13:48 -05:00
add NERDTree.getRoot() and NERDTree.ForCurrentTab()
This commit is contained in:
@@ -112,6 +112,16 @@ function! s:NERDTree.ForCurrentBuf()
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
"FUNCTION: s:NERDTree.ForCurrentTab() {{{1
|
||||||
|
function! s:NERDTree.ForCurrentTab()
|
||||||
|
if !s:NERDTree.ExistsForTab()
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
|
let bufnr = bufnr(t:NERDTreeBufName)
|
||||||
|
return getbufvar(bufnr, "NERDTree")
|
||||||
|
endfunction
|
||||||
|
|
||||||
"FUNCTION: s:NERDTree.GetWinNum() {{{1
|
"FUNCTION: s:NERDTree.GetWinNum() {{{1
|
||||||
"gets the nerd tree window number for this tab
|
"gets the nerd tree window number for this tab
|
||||||
function! s:NERDTree.GetWinNum()
|
function! s:NERDTree.GetWinNum()
|
||||||
|
|||||||
Reference in New Issue
Block a user