There was an error while loading. Please reload this page.
1 parent c636c19 commit 3ec671eCopy full SHA for 3ec671e
autoload/pathogen.vim
@@ -25,10 +25,10 @@ function! pathogen#infect(...) abort
25
if a:0
26
let paths = filter(reverse(copy(a:000)), 'type(v:val) == type("")')
27
else
28
- let paths = ['bundle/{}']
29
- if !has('packages')
30
- call add(paths, 'pack/{}/start/{}')
31
- endif
+ let paths = ['bundle/{}', 'pack/{}/start/{}']
+ endif
+ if has('packages')
+ call filter(paths, 'v:val !~# "^pack/[^/]*/start/[^/]*$"')
32
endif
33
let static = '^\%([$~\\/]\|\w:[\\/]\)[^{}*]*[\/]$'
34
for path in filter(copy(paths), 'v:val =~# static')
0 commit comments