mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 20:03:48 -05:00
fix a bug with secondary nerd trees and NERDTreeQuitOnOpen
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user