mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-27 07:54:44 +02:00
tagbar: prevent error on initial load
Tagbar plugin expects a printf() formatting string, so use one
This commit is contained in:
parent
9252c11d37
commit
50a936608c
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user