mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 20:03:48 -05:00
move b:NERDTreeType into the NERDTree class and add some query methods
This commit is contained in:
@@ -208,7 +208,7 @@ endfunction
|
||||
" FUNCTION: s:closeTreeWindow() {{{1
|
||||
" close the tree window
|
||||
function! s:closeTreeWindow()
|
||||
if b:NERDTreeType ==# "window" && b:NERDTreePreviousBuf != -1
|
||||
if b:NERDTree.isWinTree() && b:NERDTreePreviousBuf != -1
|
||||
exec "buffer " . b:NERDTreePreviousBuf
|
||||
else
|
||||
if winnr("$") > 1
|
||||
|
||||
Reference in New Issue
Block a user