fix a bug with secondary nerd trees and NERDTreeQuitOnOpen

This commit is contained in:
Martin Grenfell
2009-07-18 00:46:43 +12:00
parent e7ebee3084
commit 71ebe27a8d
2 changed files with 6 additions and 1 deletions

View File

@@ -2344,7 +2344,7 @@ endfunction
"FUNCTION: s:closeTreeIfQuitOnOpen() {{{2
"Closes the NERD tree window if the close on open option is set
function! s:closeTreeIfQuitOnOpen()
if g:NERDTreeQuitOnOpen
if g:NERDTreeQuitOnOpen && s:isTreeOpen()
call s:closeTree()
endif
endfunction