diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index 13db02d0..9ce99716 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.6.0-141' +let g:_SYNTASTIC_VERSION = '3.6.0-142' lockvar g:_SYNTASTIC_VERSION " Sanity checks {{{1 diff --git a/syntax_checkers/javascript/eslint.vim b/syntax_checkers/javascript/eslint.vim index aaba7c9f..cae1129f 100644 --- a/syntax_checkers/javascript/eslint.vim +++ b/syntax_checkers/javascript/eslint.vim @@ -43,9 +43,15 @@ function! SyntaxCheckers_javascript_eslint_GetLocList() dict \ 'errorformat': errorformat, \ 'postprocess': ['guards'] }) - for e in loclist - let e['col'] += 1 - endfor + if !exists('s:eslint_new') + let s:eslint_new = syntastic#util#versionIsAtLeast(self.getVersion(), [1]) + endif + + if !s:eslint_new + for e in loclist + let e['col'] += 1 + endfor + endif return loclist endfunction