add deprecation warnings.

This commit is contained in:
Bailey Ling committed 2013-08-28 01:28:31 +00:00
1 parent 4b9cda77dd
commit 14656f766b
3 files changed
+25 -6

No files matched your search

+2 -2
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')