From 1327780c5c182f47296733d09dda31a086171498 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Wed, 22 Oct 2014 11:49:40 +0300 Subject: [PATCH] Proscpector: all tools except pylint return 1-based column numbers. --- autoload/syntastic/preprocess.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autoload/syntastic/preprocess.vim b/autoload/syntastic/preprocess.vim index cdd18527..e8516385 100644 --- a/autoload/syntastic/preprocess.vim +++ b/autoload/syntastic/preprocess.vim @@ -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'] . ']'