diff --git a/autoload/airline/extensions.vim b/autoload/airline/extensions.vim index 2907e7f..7dce3d4 100644 --- a/autoload/airline/extensions.vim +++ b/autoload/airline/extensions.vim @@ -209,7 +209,10 @@ function! airline#extensions#load() " load all other extensions not part of the default distribution for file in split(globpath(&rtp, "autoload/airline/extensions/*.vim"), "\n") + " check to see that both the resolved and unresolved paths do not match + " up with the path of the found extension if stridx(resolve(fnamemodify(file, ':p')), s:script_path) < 0 + \ && stridx(fnamemodify(file, ':p'), s:script_path) < 0 let name = fnamemodify(file, ':t:r') if !get(g:, 'airline#extensions#'.name.'#enabled', 1) continue