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
1 changed files with 1 additions and 1 deletions

View File

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