mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-22 11:32:25 +08:00
Set a maximum window size when zooming. (#950)
This commit is contained in:
parent
5e8aa9e721
commit
c05615fd80
|
@ -702,6 +702,9 @@ the NERD tree. These settings should be set in your vimrc, using `:let`.
|
|||
|NERDTreeWinSize| Sets the window size when the NERD tree is
|
||||
opened.
|
||||
|
||||
|NERDTreeWinSizeMax| Sets the maximum window size when the NERD tree
|
||||
is zoomed.
|
||||
|
||||
|NERDTreeMinimalUI| Disables display of the 'Bookmarks' label and
|
||||
'Press ? for help' text.
|
||||
|
||||
|
|
|
@ -503,7 +503,7 @@ function! s:UI.toggleZoom()
|
|||
exec "silent vertical resize ". size
|
||||
let b:NERDTreeZoomed = 0
|
||||
else
|
||||
exec "vertical resize"
|
||||
exec "vertical resize ". get(g:, 'NERDTreeWinSizeMax', '')
|
||||
let b:NERDTreeZoomed = 1
|
||||
endif
|
||||
endfunction
|
||||
|
|
Loading…
Reference in New Issue
Block a user