From 4c4e516e1ddd7c1b04624e26be1bbb41bc6b7edb Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Wed, 5 Oct 2016 14:47:54 +0300 Subject: [PATCH] Bug fix: allow checkers to have an empty exec. --- plugin/syntastic.vim | 2 +- plugin/syntastic/checker.vim | 3 +++ syntax_checkers/vim/vimlint.vim | 3 +-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index 1803f8ff..3b3b0696 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -19,7 +19,7 @@ if has('reltime') lockvar! g:_SYNTASTIC_START endif -let g:_SYNTASTIC_VERSION = '3.7.0-229' +let g:_SYNTASTIC_VERSION = '3.7.0-230' lockvar g:_SYNTASTIC_VERSION " Sanity checks {{{1 diff --git a/plugin/syntastic/checker.vim b/plugin/syntastic/checker.vim index 9feb9ad5..c3a12a9d 100644 --- a/plugin/syntastic/checker.vim +++ b/plugin/syntastic/checker.vim @@ -32,6 +32,9 @@ function! g:SyntasticChecker.New(args, ...) abort " {{{2 endif else let newObj._exec_default = get(a:args, 'exec', newObj._name) + if newObj._exec_default ==# '' + let newObj._exec_default = '' + endif let prefix = 'SyntaxCheckers_' . newObj._filetype . '_' . newObj._name . '_' if has_key(a:args, 'enable') diff --git a/syntax_checkers/vim/vimlint.vim b/syntax_checkers/vim/vimlint.vim index 0e03ed0b..19cab49e 100644 --- a/syntax_checkers/vim/vimlint.vim +++ b/syntax_checkers/vim/vimlint.vim @@ -99,8 +99,7 @@ endfunction " }}}2 call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'vim', - \ 'name': 'vimlint', - \ 'exec': '' }) + \ 'name': 'vimlint' }) let &cpo = s:save_cpo unlet s:save_cpo