add deprecation warnings.

This commit is contained in:
Bailey Ling
2013-08-28 00:28:52 +00:00
parent 4b9cda77dd
commit 14656f766b
3 changed files with 25 additions and 6 deletions

View File

@@ -195,8 +195,8 @@ 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
" we have to check both resolved and unresolved paths, since it's possible
" that they might not get resolved properly (see #187)
if stridx(resolve(fnamemodify(file, ':p')), s:script_path) < 0
\ && stridx(fnamemodify(file, ':p'), s:script_path) < 0
let name = fnamemodify(file, ':t:r')