taglist: avoid v:true/v:false

This commit is contained in:
Christian Brabandt 2022-02-28 15:41:38 +01:00
parent 24f2878080
commit e2498d72dc
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 2 additions and 2 deletions

View File

@ -11,10 +11,10 @@ endif
function! airline#extensions#taglist#currenttag()
" Update tag list if taglist is not loaded (else we get an empty tag name)
" Load yegappan/taglist and vim-scripts/taglist.vim only once.
let tlist_updated = v:false
let tlist_updated = 0
if !exists('*taglist#Tlist_Get_Tagname_By_Line()') && !exists('*Tlist_Get_Tagname_By_Line()')
TlistUpdate
let tlist_updated = v:true
let tlist_updated = 1
endif
if !tlist_updated && exists('*Tlist_Get_Filenames()')
if stridx(Tlist_Get_Filenames(), expand('%:p')) < 0