From 3c7e4b140001972f461acb2ae469f4e8f9267070 Mon Sep 17 00:00:00 2001 From: mattn Date: Thu, 22 Aug 2013 13:05:59 +0900 Subject: [PATCH] Fixes bundle paths. For example ftbundle add 'vim-airline/./autoload' into RTP. --- autoload/airline/extensions.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions.vim b/autoload/airline/extensions.vim index dd008bd5..26a8c054 100644 --- a/autoload/airline/extensions.vim +++ b/autoload/airline/extensions.vim @@ -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