mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-11 21:03:49 -05:00
move the closeTree functions out of autoload
Remove `closeTreeIfOpen` and just make `closeTree` fail silently.
This commit is contained in:
@@ -40,7 +40,7 @@ function! s:Opener._checkToCloseTree(newtab)
|
||||
endif
|
||||
|
||||
if (a:newtab && self._where == 't') || !a:newtab
|
||||
call nerdtree#closeTreeIfQuitOnOpen()
|
||||
call g:NERDTree.CloseIfQuitOnOpen()
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user