tagbar: prevent error on initial load

Tagbar plugin expects a printf() formatting string, so use one
This commit is contained in:
Christian Brabandt 2023-01-19 21:25:23 +01:00
parent 9252c11d37
commit 50a936608c
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ function! airline#extensions#tagbar#currenttag()
try
" try to load the plugin, if filetypes are disabled,
" this will cause an error, so try only once
let a=tagbar#currenttag('%', '', '')
let a = tagbar#currenttag('%s', '', '')
catch
endtry
unlet! a