Merge pull request #870 from scrooloose/undo_zoom_on_open

Unzoom NERDTree when opening a file
This commit is contained in:
Phil Runninger 2018-09-10 06:34:05 -04:00 committed by GitHub
commit 129a241b22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -243,6 +243,9 @@ endfunction
" FUNCTION: Opener._openFile() {{{1
function! s:Opener._openFile()
if !self._stay && !g:NERDTreeQuitOnOpen && exists("b:NERDTreeZoomed") && b:NERDTreeZoomed
call b:NERDTree.ui.toggleZoom()
endif
if self._reuseWindow()
return