Skip to content

Commit 5b5bee9

Browse files
committed
Restore disabling of paths ending in ~
1 parent 9a40364 commit 5b5bee9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autoload/pathogen.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ endfunction
9191
" Check if a bundle is disabled. A bundle is considered disabled if its
9292
" basename or full name is included in the list g:pathogen_disabled.
9393
function! pathogen#is_disabled(path) abort
94+
if a:path =~# '\~$'
95+
return 1
96+
endif
9497
let sep = pathogen#slash()
9598
let blacklist = get(g:, 'pathogen_blacklist', get(g:, 'pathogen_disabled', [])) + pathogen#split($VIMBLACKLIST)
9699
return index(blacklist, fnamemodify(a:path, ':t')) != -1 || index(blacklist, a:path) != -1

0 commit comments

Comments
 (0)