move isTreeOpen() out of autoload

This commit is contained in:
Martin Grenfell
2015-05-02 14:44:32 +01:00
parent 8270b6d717
commit 0d88ce946f
5 changed files with 23 additions and 20 deletions

View File

@@ -185,7 +185,7 @@ function! NERDTreeRender()
endfunction
function! NERDTreeFocus()
if nerdtree#isTreeOpen()
if g:NERDTree.IsOpen()
call nerdtree#putCursorInTreeWin()
else
call g:NERDTreeCreator.TogglePrimary("")