Fix error in airline#add_statusline_funcref

This commit is contained in:
Christian Brabandt 2018-11-13 22:33:43 +01:00
parent 7f6dfbefd1
commit b3a574b4a3
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -19,7 +19,7 @@ endfunction
function! airline#add_statusline_funcref(function)
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
endif
call add(g:airline_statusline_funcrefs, a:function)