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)
|
function! airline#add_statusline_funcref(function)
|
||||||
if index(g:airline_statusline_funcrefs, a:function) >= 0
|
if index(g:airline_statusline_funcrefs, a:function) >= 0
|
||||||
echohl WarningMsg
|
call airline#util#warning('The airline statusline funcref %s has already been added.', string(a:function))
|
||||||
echo 'The airline statusline funcref '.string(a:function).' has already been added.'
|
|
||||||
echohl NONE
|
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
call add(g:airline_statusline_funcrefs, a:function)
|
call add(g:airline_statusline_funcrefs, a:function)
|
||||||
|
Loading…
Reference in New Issue
Block a user