Treat infect("~/foo/") as infect("/foo/{}")

This commit is contained in:
Tim Pope
2013-01-13 17:46:39 -05:00
parent 34eff0f3e4
commit 40dcd3743b
+2
View File
@@ -25,6 +25,8 @@ function! pathogen#infect(...) abort " {{{1
let source_path = a:0 ? a:1 : 'bundle'
if source_path =~# '[\\/]\%({}\|\*\)$'
call pathogen#surround(source_path)
elseif source_path =~# '[\\/]$'
call pathogen#surround(source_path . '{}')
elseif source_path =~# '[\\/]'
if &verbose
echohl WarningMsg