use the s:nextBufferName() helper in s:createTreeWin()

This commit is contained in:
Martin Grenfell 2009-01-09 17:11:18 +13:00
parent cd55e2d522
commit 0e9feaede3

View File

@ -2310,8 +2310,7 @@ function! s:createTreeWin()
let splitLocation = g:NERDTreeWinPos == "left" ? "topleft " : "botright "
let splitSize = g:NERDTreeWinSize
if !exists('t:NERDTreeBufName')
let t:NERDTreeBufName = s:NERDTreeBufName . s:next_buffer_number
let s:next_buffer_number += 1
let t:NERDTreeBufName = s:nextBufferName()
endif
let cmd = splitLocation . 'vertical ' . splitSize . ' new ' . t:NERDTreeBufName
silent! execute cmd