Skip to content

Commit d7be5c7

Browse files
committed
Start renaming pathogen_disabled to pathogen_blacklist
1 parent 0f43888 commit d7be5c7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

autoload/pathogen.vim

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,9 @@ endfunction " }}}1
133133
" Check if a bundle is disabled. A bundle is considered disabled if its
134134
" basename or full name is included in the list g:pathogen_disabled.
135135
function! pathogen#is_disabled(path) abort " {{{1
136-
if !exists("g:pathogen_disabled")
137-
return 0
138-
endif
139136
let sep = pathogen#separator()
140-
let blacklist = g:pathogen_disabled
141-
return index(blacklist, strpart(a:path, strridx(a:path, sep)+1)) != -1 && index(blacklist, a:path) != 1
137+
let blacklist = get(g:, 'pathogen_blacklist', get(g:, 'pathogen_disabled', []))
138+
return index(blacklist, fnamemodify(a:path, ':t')) != -1 || index(blacklist, a:path) != -1
142139
endfunction "}}}1
143140

144141
" Prepend the given directory to the runtime path and append its corresponding

0 commit comments

Comments
 (0)