From c2c005897384fc90074024037650ad208ffda451 Mon Sep 17 00:00:00 2001 From: Gilles Ruppert Date: Sat, 11 Feb 2012 02:27:45 +0100 Subject: [PATCH] make the ternary check for the javascript jshint config explicit as else it was not working on my system --- syntax_checkers/javascript/jshint.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax_checkers/javascript/jshint.vim b/syntax_checkers/javascript/jshint.vim index 76700458..e561c512 100644 --- a/syntax_checkers/javascript/jshint.vim +++ b/syntax_checkers/javascript/jshint.vim @@ -14,7 +14,7 @@ endif function! SyntaxCheckers_javascript_GetLocList() " node-jshint uses .jshintrc as config unless --config arg is present - let args = g:syntastic_javascript_jshint_conf? ' --config ' . g:syntastic_javascript_jshint_conf : '' + let args = g:syntastic_javascript_jshint_conf != '' ? ' --config ' . g:syntastic_javascript_jshint_conf : '' let makeprg = 'jshint ' . shellescape(expand("%")) . args let errorformat = '%ELine %l:%c,%Z\\s%#Reason: %m,%C%.%#,%f: line %l\, col %c\, %m,%-G%.%#' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat, 'defaults': {'bufnr': bufnr('')} })