fix regression; account for symlinks.

This commit is contained in:
Bailey Ling 2013-08-22 08:27:44 -04:00
parent fa3cd0fdc1
commit 0dc3a7913d
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ 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')
if stridx(fnamemodify(file, ':p'), s:script_path) < 0
if stridx(resolve(fnamemodify(file, ':p')), s:script_path) < 0
let name = fnamemodify(file, ':t:r')
if !get(g:, 'airline#extensions#'.name.'#enabled', 1)
continue