From 2754bcb65b750eb5ca9de2787bcc98ba4bbee2f7 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Sat, 4 Jan 2014 19:26:56 +0200 Subject: [PATCH] Fix column reporting in pyflakes. --- syntax_checkers/python/pyflakes.vim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/syntax_checkers/python/pyflakes.vim b/syntax_checkers/python/pyflakes.vim index 8112bf3c..e62965f4 100644 --- a/syntax_checkers/python/pyflakes.vim +++ b/syntax_checkers/python/pyflakes.vim @@ -45,14 +45,19 @@ function! SyntaxCheckers_python_pyflakes_GetLocList() dict let errorformat = \ '%E%f:%l: could not compile,'. \ '%-Z%p^,'. - \ '%E%f:%l:%c: %m,'. \ '%E%f:%l: %m,'. \ '%-G%.%#' - return SyntasticMake({ + let loclist = SyntasticMake({ \ 'makeprg': makeprg, \ 'errorformat': errorformat, \ 'defaults': {'text': "Syntax error"} }) + + for e in loclist + let e['vcol'] = 0 + endfor + + return loclist endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({