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)