check both resolved and unresolved paths (#187).
This commit is contained in:
parent
04e00d6933
commit
ccb00be717
@ -209,7 +209,10 @@ function! airline#extensions#load()
|
|||||||
|
|
||||||
" load all other extensions not part of the default distribution
|
" load all other extensions not part of the default distribution
|
||||||
for file in split(globpath(&rtp, "autoload/airline/extensions/*.vim"), "\n")
|
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
|
if stridx(resolve(fnamemodify(file, ':p')), s:script_path) < 0
|
||||||
|
\ && stridx(fnamemodify(file, ':p'), s:script_path) < 0
|
||||||
let name = fnamemodify(file, ':t:r')
|
let name = fnamemodify(file, ':t:r')
|
||||||
if !get(g:, 'airline#extensions#'.name.'#enabled', 1)
|
if !get(g:, 'airline#extensions#'.name.'#enabled', 1)
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user