Merge pull request #870 from scrooloose/undo_zoom_on_open
Unzoom NERDTree when opening a file
This commit is contained in:
commit
129a241b22
@ -243,6 +243,9 @@ endfunction
|
|||||||
|
|
||||||
" FUNCTION: Opener._openFile() {{{1
|
" FUNCTION: Opener._openFile() {{{1
|
||||||
function! s:Opener._openFile()
|
function! s:Opener._openFile()
|
||||||
|
if !self._stay && !g:NERDTreeQuitOnOpen && exists("b:NERDTreeZoomed") && b:NERDTreeZoomed
|
||||||
|
call b:NERDTree.ui.toggleZoom()
|
||||||
|
endif
|
||||||
|
|
||||||
if self._reuseWindow()
|
if self._reuseWindow()
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user