From 61dc750149239b0b73512f66287a77839a4d65cd Mon Sep 17 00:00:00 2001 From: WADA Takashi Date: Wed, 27 Jul 2022 10:59:39 +0900 Subject: [PATCH] Follow interface change of Tlist_Get_Filenames() in taglist https://github.com/yegappan/taglist/commit/fac4055600f5ccb86b35ee1c41f64169441eaba0#diff-f6bf21c80d33916483d5e6c73613457b588f0c86886ebf84f6a50f242e36d72bL3687 --- autoload/airline/extensions/taglist.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/airline/extensions/taglist.vim b/autoload/airline/extensions/taglist.vim index 042dd5ff..c3c3d247 100644 --- a/autoload/airline/extensions/taglist.vim +++ b/autoload/airline/extensions/taglist.vim @@ -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