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:
Martin Grenfell 2016-04-26 09:15:08 +01:00
parent 0cb999c070
commit 35c859179d
2 changed files with 2 additions and 2 deletions

View File

@ -96,8 +96,7 @@ function! s:Creator.createWindowTree(dir)
"we need a unique name for each window tree buffer to ensure they are
"all independent
let prefix = get(g:, "NERDTreeCreatePrefix", "silent")
exec prefix . " edit " . self._nextBufferName()
exec g:NERDTreeCreatePrefix . " edit " . self._nextBufferName()
call self._createNERDTree(path, "window")
let b:NERDTree._previousBuf = bufnr(previousBuf)

View File

@ -48,6 +48,7 @@ call s:initVariable("g:NERDTreeAutoCenterThreshold", 3)
call s:initVariable("g:NERDTreeCaseSensitiveSort", 0)
call s:initVariable("g:NERDTreeSortHiddenFirst", 1)
call s:initVariable("g:NERDTreeChDirMode", 0)
call s:initVariable("g:NERDTreeCreatePrefix", "silent")
call s:initVariable("g:NERDTreeMinimalUI", 0)
if !exists("g:NERDTreeIgnore")
let g:NERDTreeIgnore = ['\~$']