From be1091f2517b249653daa5abffa60b6134ecfaaf Mon Sep 17 00:00:00 2001 From: Gilles Ruppert Date: Sat, 11 Feb 2012 21:45:30 +0100 Subject: [PATCH] rather than compare to '' we use the vimscript `emtpy` function as else the check does not work --- 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 e561c512..164b7bd4 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 = !empty(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('')} })