update initialization of default value for g:NERDTreeCreatePrefix
Init it with the rest of the option defaults - rather than specify the default at point of use. For consistency. See #550.
This commit is contained in:
parent
0cb999c070
commit
35c859179d
@ -96,8 +96,7 @@ function! s:Creator.createWindowTree(dir)
|
|||||||
|
|
||||||
"we need a unique name for each window tree buffer to ensure they are
|
"we need a unique name for each window tree buffer to ensure they are
|
||||||
"all independent
|
"all independent
|
||||||
let prefix = get(g:, "NERDTreeCreatePrefix", "silent")
|
exec g:NERDTreeCreatePrefix . " edit " . self._nextBufferName()
|
||||||
exec prefix . " edit " . self._nextBufferName()
|
|
||||||
|
|
||||||
call self._createNERDTree(path, "window")
|
call self._createNERDTree(path, "window")
|
||||||
let b:NERDTree._previousBuf = bufnr(previousBuf)
|
let b:NERDTree._previousBuf = bufnr(previousBuf)
|
||||||
|
@ -48,6 +48,7 @@ call s:initVariable("g:NERDTreeAutoCenterThreshold", 3)
|
|||||||
call s:initVariable("g:NERDTreeCaseSensitiveSort", 0)
|
call s:initVariable("g:NERDTreeCaseSensitiveSort", 0)
|
||||||
call s:initVariable("g:NERDTreeSortHiddenFirst", 1)
|
call s:initVariable("g:NERDTreeSortHiddenFirst", 1)
|
||||||
call s:initVariable("g:NERDTreeChDirMode", 0)
|
call s:initVariable("g:NERDTreeChDirMode", 0)
|
||||||
|
call s:initVariable("g:NERDTreeCreatePrefix", "silent")
|
||||||
call s:initVariable("g:NERDTreeMinimalUI", 0)
|
call s:initVariable("g:NERDTreeMinimalUI", 0)
|
||||||
if !exists("g:NERDTreeIgnore")
|
if !exists("g:NERDTreeIgnore")
|
||||||
let g:NERDTreeIgnore = ['\~$']
|
let g:NERDTreeIgnore = ['\~$']
|
||||||
|
Loading…
Reference in New Issue
Block a user