autoload: use airline#util#warning instead of echo
This commit is contained in:
parent
464633baad
commit
c850f485ad
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user