mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-05-19 23:09:47 +08:00
tagbar: prevent error on initial load
Tagbar plugin expects a printf() formatting string, so use one
This commit is contained in:
@@ -35,7 +35,7 @@ function! airline#extensions#tagbar#currenttag()
|
|||||||
try
|
try
|
||||||
" try to load the plugin, if filetypes are disabled,
|
" try to load the plugin, if filetypes are disabled,
|
||||||
" this will cause an error, so try only once
|
" this will cause an error, so try only once
|
||||||
let a=tagbar#currenttag('%', '', '')
|
let a = tagbar#currenttag('%s', '', '')
|
||||||
catch
|
catch
|
||||||
endtry
|
endtry
|
||||||
unlet! a
|
unlet! a
|
||||||
|
|||||||
Reference in New Issue
Block a user