Fixes bundle paths. For example ftbundle add 'vim-airline/./autoload' into RTP.

This commit is contained in:
mattn 2013-08-22 13:05:59 +09:00
parent 40d6773a22
commit 3c7e4b1400

View File

@ -183,7 +183,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 match(file, '\vvim-airline(/|\\)autoload') < 0
if match(fnamemodify(file, ':p'), '\vvim-airline(/|\\)autoload') < 0
let name = fnamemodify(file, ':t:r')
if !get(g:, 'airline#extensions#'.name.'#enabled', 1)
continue