Proscpector: all tools except pylint return 1-based column numbers.

This commit is contained in:
LCD 47 2014-10-22 11:49:40 +03:00
parent ba1b4606e7
commit 1327780c5c

View File

@ -88,10 +88,14 @@ function! syntastic#preprocess#prospector(errors) " {{{2
for e in errs['messages']
if type(e) == type({})
try
if e['source'] ==# 'pylint'
let e['location']['character'] += 1
endif
let msg =
\ e['location']['path'] . ':' .
\ e['location']['line'] . ':' .
\ (e['location']['character'] + 1) . ': ' .
\ e['location']['character'] . ': ' .
\ e['code'] . ' ' .
\ e['message'] . ' ' .
\ '[' . e['source'] . ']'