From c3ee263d5b41c87f27555b3ce99bfb07e95dfae1 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 13 Nov 2018 21:28:47 +0100 Subject: [PATCH] whitespace: use airline#util#warning instead of echo consistently --- autoload/airline/extensions/whitespace.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/airline/extensions/whitespace.vim b/autoload/airline/extensions/whitespace.vim index 8833ef0..c9b5a2a 100644 --- a/autoload/airline/extensions/whitespace.vim +++ b/autoload/airline/extensions/whitespace.vim @@ -67,7 +67,7 @@ function! airline#extensions#whitespace#check() let regexp = get(g:, 'airline#extensions#whitespace#trailing_regexp', '\s$') let trailing = search(regexp, 'nw') catch - echomsg 'airline#whitespace: error occurred evaluating '. regexp + call airline#util#warning(printf('Whitespace: error occurred evaluating "%s"', regexp)) echomsg v:exception return '' endtry @@ -140,7 +140,7 @@ function! airline#extensions#whitespace#toggle() call airline#update_statusline() endif endif - echo 'Whitespace checking: '.(s:enabled ? 'Enabled' : 'Disabled') + call airline#util#warning(printf('Whitespace checking: %s',(s:enabled ? 'Enabled' : 'Disabled'))) endfunction function! airline#extensions#whitespace#disable()