Merge pull request #2556 from watagashi/follow-interface-change-in-taglist

Follow interface change of Tlist_Get_Filenames() in taglist
This commit is contained in:
Christian Brabandt 2022-08-08 08:55:49 +02:00 committed by GitHub
commit 9c7790b030
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,8 @@ function! airline#extensions#taglist#currenttag()
let tlist_updated = 1
endif
if !tlist_updated && exists('*Tlist_Get_Filenames()')
if stridx(Tlist_Get_Filenames(), expand('%:p')) < 0
let tlist_filenames = Tlist_Get_Filenames()
if stridx(type(tlist_filenames) == type([]) ? join(tlist_filenames, '\n') : tlist_filenames, expand('%:p')) < 0
TlistUpdate
endif
endif