fix lots of no-name buffers being created

Previously every time the tree window was created a new [no-name] buffer
was being created (visible with :ls!). Avoid this by creating the window
with split,  not new
This commit is contained in:
Martin Grenfell 2009-03-12 09:40:16 +13:00
parent 3796a8799a
commit eef90bf320

View File

@ -2355,7 +2355,7 @@ function! s:createTreeWin()
"create the nerd tree window
let splitLocation = g:NERDTreeWinPos ==# "left" ? "topleft " : "botright "
let splitSize = g:NERDTreeWinSize
silent! exec splitLocation . 'vertical ' . splitSize . ' new'
silent! exec splitLocation . 'vertical ' . splitSize . ' split'
if !exists('t:NERDTreeBufName')
let t:NERDTreeBufName = s:nextBufferName()