Fix :Connect with argument

References #120.
This commit is contained in:
Tim Pope 2014-01-06 12:49:12 -05:00
parent 7277fc4e6d
commit bb84d556bc

View File

@ -215,7 +215,7 @@ endfunction
function! s:Connect(...) function! s:Connect(...)
if (a:0 ? a:1 : '') =~# '^\w\+://' if (a:0 ? a:1 : '') =~# '^\w\+://'
let [proto, arg] = split(a:arg, '://') let [proto, arg] = split(a:1, '://')
elseif a:0 elseif a:0
return 'echoerr '.string('Usage: :Connect proto://...') return 'echoerr '.string('Usage: :Connect proto://...')
else else