Skip to content

Commit

Permalink
fix: toggle zoom resizing (#1395)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Schreck <[email protected]>
  • Loading branch information
rzvxa and ds2606 authored Jan 1, 2024
1 parent e559927 commit aa29fbe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/nerdtree/ui.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aa29fbe

Please sign in to comment.