use the s:nextBufferName() helper in s:createTreeWin()
This commit is contained in:
parent
cd55e2d522
commit
0e9feaede3
@ -2310,8 +2310,7 @@ function! s:createTreeWin()
|
|||||||
let splitLocation = g:NERDTreeWinPos == "left" ? "topleft " : "botright "
|
let splitLocation = g:NERDTreeWinPos == "left" ? "topleft " : "botright "
|
||||||
let splitSize = g:NERDTreeWinSize
|
let splitSize = g:NERDTreeWinSize
|
||||||
if !exists('t:NERDTreeBufName')
|
if !exists('t:NERDTreeBufName')
|
||||||
let t:NERDTreeBufName = s:NERDTreeBufName . s:next_buffer_number
|
let t:NERDTreeBufName = s:nextBufferName()
|
||||||
let s:next_buffer_number += 1
|
|
||||||
endif
|
endif
|
||||||
let cmd = splitLocation . 'vertical ' . splitSize . ' new ' . t:NERDTreeBufName
|
let cmd = splitLocation . 'vertical ' . splitSize . ' new ' . t:NERDTreeBufName
|
||||||
silent! execute cmd
|
silent! execute cmd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user