mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-26 10:14:20 +08:00
fix a bug with secondary nerd trees and NERDTreeQuitOnOpen
This commit is contained in:
parent
e7ebee3084
commit
71ebe27a8d
|
@ -997,6 +997,10 @@ The latest dev versions are on github
|
||||||
==============================================================================
|
==============================================================================
|
||||||
6. Changelog *NERDTreeChangelog*
|
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
|
3.1.1
|
||||||
- fix a bug where a non-listed no-name buffer was getting created every
|
- 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
|
time the tree windows was created, thanks to Derek Wyatt and owen1
|
||||||
|
@ -1087,6 +1091,7 @@ just downloaded pr0n instead.
|
||||||
Frederic Chanal (nach)
|
Frederic Chanal (nach)
|
||||||
Alf Mikula
|
Alf Mikula
|
||||||
Lucas S. Buchala
|
Lucas S. Buchala
|
||||||
|
Curtis Harvey
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
8. License *NERDTreeLicense*
|
8. License *NERDTreeLicense*
|
||||||
|
|
|
@ -2344,7 +2344,7 @@ endfunction
|
||||||
"FUNCTION: s:closeTreeIfQuitOnOpen() {{{2
|
"FUNCTION: s:closeTreeIfQuitOnOpen() {{{2
|
||||||
"Closes the NERD tree window if the close on open option is set
|
"Closes the NERD tree window if the close on open option is set
|
||||||
function! s:closeTreeIfQuitOnOpen()
|
function! s:closeTreeIfQuitOnOpen()
|
||||||
if g:NERDTreeQuitOnOpen
|
if g:NERDTreeQuitOnOpen && s:isTreeOpen()
|
||||||
call s:closeTree()
|
call s:closeTree()
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
Loading…
Reference in New Issue
Block a user