Bug fix: allow checkers to have an empty exec.
This commit is contained in:
parent
75b1095586
commit
4c4e516e1d
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:_SYNTASTIC_START
|
lockvar! g:_SYNTASTIC_START
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:_SYNTASTIC_VERSION = '3.7.0-229'
|
let g:_SYNTASTIC_VERSION = '3.7.0-230'
|
||||||
lockvar g:_SYNTASTIC_VERSION
|
lockvar g:_SYNTASTIC_VERSION
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
@ -32,6 +32,9 @@ function! g:SyntasticChecker.New(args, ...) abort " {{{2
|
|||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
let newObj._exec_default = get(a:args, 'exec', newObj._name)
|
let newObj._exec_default = get(a:args, 'exec', newObj._name)
|
||||||
|
if newObj._exec_default ==# ''
|
||||||
|
let newObj._exec_default = '<dummy>'
|
||||||
|
endif
|
||||||
let prefix = 'SyntaxCheckers_' . newObj._filetype . '_' . newObj._name . '_'
|
let prefix = 'SyntaxCheckers_' . newObj._filetype . '_' . newObj._name . '_'
|
||||||
|
|
||||||
if has_key(a:args, 'enable')
|
if has_key(a:args, 'enable')
|
||||||
|
@ -99,8 +99,7 @@ endfunction " }}}2
|
|||||||
|
|
||||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||||
\ 'filetype': 'vim',
|
\ 'filetype': 'vim',
|
||||||
\ 'name': 'vimlint',
|
\ 'name': 'vimlint' })
|
||||||
\ 'exec': '' })
|
|
||||||
|
|
||||||
let &cpo = s:save_cpo
|
let &cpo = s:save_cpo
|
||||||
unlet s:save_cpo
|
unlet s:save_cpo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user