extensions: correctly check for external extensions

fixes #2594
This commit is contained in:
Christian Brabandt 2023-01-11 16:45:28 +01:00
parent 1028c6ea12
commit 1ecbc76682
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -488,7 +488,7 @@ function! airline#extensions#load()
\ && stridx(tolower(fnamemodify(file, ':p')), s:script_path) < 0
let name = fnamemodify(file, ':t:r')
if !get(g:, 'airline#extensions#'.name.'#enabled', 1) ||
\ index(s:loaded_ext, name) > -1
\ index(s:loaded_ext, name.'*') > -1
continue
endif
try