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 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
|
||||
|
|
Loading…
Reference in New Issue