From d7be5c771237cc17b8e711c4808e3aff2805d4ff Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 20 Mar 2014 03:09:46 -0400 Subject: [PATCH] Start renaming pathogen_disabled to pathogen_blacklist --- autoload/pathogen.vim | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/autoload/pathogen.vim b/autoload/pathogen.vim index 544bcf5..4d9b228 100644 --- a/autoload/pathogen.vim +++ b/autoload/pathogen.vim @@ -133,12 +133,9 @@ endfunction " }}}1 " Check if a bundle is disabled. A bundle is considered disabled if its " basename or full name is included in the list g:pathogen_disabled. function! pathogen#is_disabled(path) abort " {{{1 - if !exists("g:pathogen_disabled") - return 0 - endif let sep = pathogen#separator() - let blacklist = g:pathogen_disabled - return index(blacklist, strpart(a:path, strridx(a:path, sep)+1)) != -1 && index(blacklist, a:path) != 1 + let blacklist = get(g:, 'pathogen_blacklist', get(g:, 'pathogen_disabled', [])) + return index(blacklist, fnamemodify(a:path, ':t')) != -1 || index(blacklist, a:path) != -1 endfunction "}}}1 " Prepend the given directory to the runtime path and append its corresponding