mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 03:43:50 -05:00
If the NERDTree is zoomed when 'o'pening a file, unzoom it.
'go' does not trigger this new behavior, because focus remains in the NERDTree.
This commit is contained in:
@@ -244,6 +244,9 @@ endfunction
|
|||||||
|
|
||||||
" FUNCTION: Opener._openFile() {{{1
|
" FUNCTION: Opener._openFile() {{{1
|
||||||
function! s:Opener._openFile()
|
function! s:Opener._openFile()
|
||||||
|
if !self._stay && exists("b:NERDTreeZoomed") && b:NERDTreeZoomed
|
||||||
|
call b:NERDTree.ui.toggleZoom()
|
||||||
|
endif
|
||||||
|
|
||||||
if self._reuseWindow()
|
if self._reuseWindow()
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user