From ccb00be717d36276514ed660f6f6b6d3413b1fad Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Mon, 26 Aug 2013 15:39:27 +0000 Subject: [PATCH] check both resolved and unresolved paths (#187). --- autoload/airline/extensions.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/airline/extensions.vim b/autoload/airline/extensions.vim index 2907e7f2..7dce3d4a 100644 --- a/autoload/airline/extensions.vim +++ b/autoload/airline/extensions.vim @@ -209,7 +209,10 @@ 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 if stridx(resolve(fnamemodify(file, ':p')), s:script_path) < 0 + \ && stridx(fnamemodify(file, ':p'), s:script_path) < 0 let name = fnamemodify(file, ':t:r') if !get(g:, 'airline#extensions#'.name.'#enabled', 1) continue