move the closeTree functions out of autoload

Remove `closeTreeIfOpen` and just make `closeTree` fail silently.
This commit is contained in:
Martin Grenfell
2015-05-02 15:01:58 +01:00
parent 0d88ce946f
commit 53d2de86eb
5 changed files with 38 additions and 45 deletions

View File

@@ -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