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

@ -997,6 +997,10 @@ The latest dev versions are on github
==============================================================================
6. Changelog *NERDTreeChangelog*
Next release:
- fix a bug where secondary nerd trees (netrw hijacked trees) and
NERDTreeQuitOnOpen didnt play nicely, thanks to Curtis Harvey.
3.1.1
- fix a bug where a non-listed no-name buffer was getting created every
time the tree windows was created, thanks to Derek Wyatt and owen1
@ -1087,6 +1091,7 @@ just downloaded pr0n instead.
Frederic Chanal (nach)
Alf Mikula
Lucas S. Buchala
Curtis Harvey
==============================================================================
8. License *NERDTreeLicense*

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