Skip to content

Commit

Permalink
Don't redundantly filter ~ suffixes
Browse files Browse the repository at this point in the history
This is already handled by glob() due to the 'suffixes' option
  • Loading branch information
tpope committed Mar 20, 2014
1 parent 8c54b5e commit 0f43888
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions autoload/pathogen.vim
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,10 @@ function! pathogen#cycle_filetype() " {{{1
endif
endfunction " }}}1

" Check if a bundle is disabled. A bundle is considered disabled if it ends
" in a tilde or its basename or full name is included in the list
" g:pathogen_disabled.
function! pathogen#is_disabled(path) " {{{1
if a:path =~# '\~$'
return 1
elseif !exists("g:pathogen_disabled")
" 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()
Expand Down

0 comments on commit 0f43888

Please sign in to comment.