From 395fccfda75a6e7bf7015c1342ca42c2c1d75fc2 Mon Sep 17 00:00:00 2001 From: Georg Molau Date: Fri, 22 Feb 2019 00:53:41 +0100 Subject: [PATCH] Fix the formatting of syntastic error messages The magic flags were in the wrong order, %e is the number of errors, it should go in the parentheses after the # symbol. %fe is the line number of the first error. Same for the warnings. --- autoload/airline/extensions/syntastic.vim | 4 ++-- doc/airline.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/autoload/airline/extensions/syntastic.vim b/autoload/airline/extensions/syntastic.vim index be21fb4..2d7ca8b 100644 --- a/autoload/airline/extensions/syntastic.vim +++ b/autoload/airline/extensions/syntastic.vim @@ -22,9 +22,9 @@ function! airline#extensions#syntastic#get(type) let _backup = get(g:, 'syntastic_stl_format', '') let is_err = (a:type is# 'error') if is_err - let g:syntastic_stl_format = get(g:, 'airline#extensions#syntastic#stl_format_err', '%E{[%e(#%fe)]}') + let g:syntastic_stl_format = get(g:, 'airline#extensions#syntastic#stl_format_err', '%E{[%fe(#%e)]}') else - let g:syntastic_stl_format = get(g:, 'airline#extensions#syntastic#stl_format_warn', '%W{[%w(#%fw)]}') + let g:syntastic_stl_format = get(g:, 'airline#extensions#syntastic#stl_format_warn', '%W{[%fw(#%w)]}') endif let cnt = SyntasticStatuslineFlag() if !empty(_backup) diff --git a/doc/airline.txt b/doc/airline.txt index 8a45fc2..6c51924 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -770,13 +770,13 @@ syntastic let airline#extensions#syntastic#error_symbol = 'E:' < * syntastic statusline error format (see |syntastic_stl_format|) > - let airline#extensions#syntastic#stl_format_err = '%E{[%e(#%fe)]}' + let airline#extensions#syntastic#stl_format_err = '%E{[%fe(#%e)]}' * syntastic warning > let airline#extensions#syntastic#warning_symbol = 'W:' < * syntastic statusline warning format (see |syntastic_stl_format|) > - let airline#extensions#syntastic#stl_format_warn = '%W{[%w(#%fw)]}' + let airline#extensions#syntastic#stl_format_warn = '%W{[%fw(#%w)]}' < ------------------------------------- *airline-tabline* Note: If you're using the ctrlspace tabline only the option marked with (c)