From 0f43888aba5cd4f11b724cb5dad36aed94d05c68 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 20 Mar 2014 02:59:22 -0400 Subject: [PATCH] Don't redundantly filter ~ suffixes This is already handled by glob() due to the 'suffixes' option --- autoload/pathogen.vim | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/autoload/pathogen.vim b/autoload/pathogen.vim index f5271d2..544bcf5 100644 --- a/autoload/pathogen.vim +++ b/autoload/pathogen.vim @@ -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()