From c850f485adaf2959be2f782f2afe2757c02f01a5 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 13 Nov 2018 21:21:55 +0100 Subject: [PATCH] autoload: use airline#util#warning instead of echo --- autoload/airline.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/autoload/airline.vim b/autoload/airline.vim index ae1e3d4..325c852 100644 --- a/autoload/airline.vim +++ b/autoload/airline.vim @@ -19,9 +19,7 @@ endfunction function! airline#add_statusline_funcref(function) if index(g:airline_statusline_funcrefs, a:function) >= 0 - echohl WarningMsg - echo 'The airline statusline funcref '.string(a:function).' has already been added.' - echohl NONE + call airline#util#warning('The airline statusline funcref %s has already been added.', string(a:function)) return endif call add(g:airline_statusline_funcrefs, a:function)