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:
Martin Grenfell 2008-06-22 13:23:32 +12:00
parent d68dcd252e
commit f74ec0661d

View File

@ -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