Skip to content

Commit 91e6378

Browse files
committed
Strip trailing slashes in blacklist
1 parent ed01fca commit 91e6378

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

autoload/pathogen.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ function! pathogen#is_disabled(path) abort
9696
return 1
9797
endif
9898
let sep = pathogen#slash()
99-
let blacklist = get(g:, 'pathogen_blacklist', get(g:, 'pathogen_disabled', [])) + pathogen#split($VIMBLACKLIST)
99+
let blacklist = map(
100+
\ get(g:, 'pathogen_blacklist', get(g:, 'pathogen_disabled', [])) +
101+
\ pathogen#split($VIMBLACKLIST),
102+
\ 'substitute(v:val, "[\\/]$", "", "")')
100103
return index(blacklist, fnamemodify(a:path, ':t')) != -1 || index(blacklist, a:path) != -1
101104
endfunction "}}}1
102105

0 commit comments

Comments
 (0)