diff --git a/autoload/pathogen.vim b/autoload/pathogen.vim index 153afc74..2bb5c29f 100644 --- a/autoload/pathogen.vim +++ b/autoload/pathogen.vim @@ -182,10 +182,10 @@ endfunction " }}}1 function! pathogen#incubate(...) abort " {{{1 let sep = pathogen#separator() let name = a:0 ? a:1 : 'bundle/{}' - if "\n".s:done_bundles =~# "\\M\n".name."\n" + if has_key(s:done_bundles, name) return "" endif - let s:done_bundles .= name . "\n" + let s:done_bundles[name] = 1 let list = [] for dir in pathogen#split(&rtp) if dir =~# '\