fix: toggle zoom resizing (#1395)

Co-authored-by: Daniel Schreck <daniel.s.schreck@gmail.com>
This commit is contained in:
Ali Rezvani 2024-01-01 06:37:44 +03:30 committed by GitHub
parent e5599272a9
commit aa29fbe481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -532,6 +532,9 @@ endfunction
" zoom (maximize/minimize) the NERDTree window " zoom (maximize/minimize) the NERDTree window
function! s:UI.toggleZoom() function! s:UI.toggleZoom()
if exists('b:NERDTreeZoomed') && b:NERDTreeZoomed if exists('b:NERDTreeZoomed') && b:NERDTreeZoomed
setlocal nowinfixwidth
wincmd =
setlocal winfixwidth
call nerdtree#exec('silent vertical resize '. g:NERDTreeWinSize, 1) call nerdtree#exec('silent vertical resize '. g:NERDTreeWinSize, 1)
let b:NERDTreeZoomed = 0 let b:NERDTreeZoomed = 0
else else