Fix error in airline#add_statusline_funcref
This commit is contained in:
parent
9dc546c699
commit
5b1c92979c
@ -19,7 +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
|
||||||
call airline#util#warning('The airline statusline funcref %s has already been added.', string(a:function))
|
call airline#util#warning(printf('The airline statusline funcref "%s" has already been added.', string(a:function)))
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
call add(g:airline_statusline_funcrefs, a:function)
|
call add(g:airline_statusline_funcrefs, a:function)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user