From aa29fbe481a4603e92240e6b0622aca97348532b Mon Sep 17 00:00:00 2001 From: Ali Rezvani <3788964+rzvxa@users.noreply.github.com> Date: Mon, 1 Jan 2024 06:37:44 +0330 Subject: [PATCH] fix: toggle zoom resizing (#1395) Co-authored-by: Daniel Schreck --- lib/nerdtree/ui.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/nerdtree/ui.vim b/lib/nerdtree/ui.vim index 358a948..dffdecd 100644 --- a/lib/nerdtree/ui.vim +++ b/lib/nerdtree/ui.vim @@ -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