mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-25 09:05:56 +08:00
fix: toggle zoom resizing (#1395)
Co-authored-by: Daniel Schreck <daniel.s.schreck@gmail.com>
This commit is contained in:
parent
e5599272a9
commit
aa29fbe481
|
@ -532,6 +532,9 @@ endfunction
|
|||
" zoom (maximize/minimize) the NERDTree window
|
||||
function! s:UI.toggleZoom()
|
||||
if exists('b:NERDTreeZoomed') && b:NERDTreeZoomed
|
||||
setlocal nowinfixwidth
|
||||
wincmd =
|
||||
setlocal winfixwidth
|
||||
call nerdtree#exec('silent vertical resize '. g:NERDTreeWinSize, 1)
|
||||
let b:NERDTreeZoomed = 0
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user