From 50a936608c44c4f8aaca0f504e0f3aeb701e74fe Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Thu, 19 Jan 2023 21:25:23 +0100 Subject: [PATCH] tagbar: prevent error on initial load Tagbar plugin expects a printf() formatting string, so use one --- autoload/airline/extensions/tagbar.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions/tagbar.vim b/autoload/airline/extensions/tagbar.vim index f4b0e867..dc92a62f 100644 --- a/autoload/airline/extensions/tagbar.vim +++ b/autoload/airline/extensions/tagbar.vim @@ -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