mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-29 12:43:44 +08:00
dont resize tree window when opening with <tab>
the <tab> mapping creates a new window, and we previously resized the nerd tree window at the same time
This commit is contained in:
parent
d68dcd252e
commit
f74ec0661d
|
@ -2218,15 +2218,6 @@ function! s:OpenNodeSplit(treenode)
|
||||||
"do nothing
|
"do nothing
|
||||||
endtry
|
endtry
|
||||||
|
|
||||||
" resize the explorer window if it is larger than the requested size
|
|
||||||
exec(there)
|
|
||||||
|
|
||||||
if g:NERDTreeWinSize =~ '[0-9]\+' && winheight("") > g:NERDTreeWinSize
|
|
||||||
exec("silent resize ".g:NERDTreeWinSize)
|
|
||||||
endif
|
|
||||||
|
|
||||||
wincmd p
|
|
||||||
|
|
||||||
" Restore splitmode settings
|
" Restore splitmode settings
|
||||||
let &splitbelow=savesplitbelow
|
let &splitbelow=savesplitbelow
|
||||||
let &splitright=savesplitright
|
let &splitright=savesplitright
|
||||||
|
|
Loading…
Reference in New Issue
Block a user