ESLint checker: line numbers are now 1-based.

This commit is contained in:
LCD 47 2015-07-30 08:22:30 +03:00
parent a01107ffa6
commit bfc55793ef
2 changed files with 10 additions and 4 deletions

View File

@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START lockvar! g:_SYNTASTIC_START
endif endif
let g:_SYNTASTIC_VERSION = '3.6.0-141' let g:_SYNTASTIC_VERSION = '3.6.0-142'
lockvar g:_SYNTASTIC_VERSION lockvar g:_SYNTASTIC_VERSION
" Sanity checks {{{1 " Sanity checks {{{1

View File

@ -43,9 +43,15 @@ function! SyntaxCheckers_javascript_eslint_GetLocList() dict
\ 'errorformat': errorformat, \ 'errorformat': errorformat,
\ 'postprocess': ['guards'] }) \ 'postprocess': ['guards'] })
if !exists('s:eslint_new')
let s:eslint_new = syntastic#util#versionIsAtLeast(self.getVersion(), [1])
endif
if !s:eslint_new
for e in loclist for e in loclist
let e['col'] += 1 let e['col'] += 1
endfor endfor
endif
return loclist return loclist
endfunction endfunction