Skip to content

Commit

Permalink
Strip trailing slashes in blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Jul 20, 2014
1 parent ed01fca commit 91e6378
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion autoload/pathogen.vim
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ function! pathogen#is_disabled(path) abort
return 1
endif
let sep = pathogen#slash()
let blacklist = get(g:, 'pathogen_blacklist', get(g:, 'pathogen_disabled', [])) + pathogen#split($VIMBLACKLIST)
let blacklist = map(
\ get(g:, 'pathogen_blacklist', get(g:, 'pathogen_disabled', [])) +
\ pathogen#split($VIMBLACKLIST),
\ 'substitute(v:val, "[\\/]$", "", "")')
return index(blacklist, fnamemodify(a:path, ':t')) != -1 || index(blacklist, a:path) != -1
endfunction "}}}1

Expand Down

0 comments on commit 91e6378

Please sign in to comment.