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:
parent
3796a8799a
commit
eef90bf320
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user