Fix issue extracting remote

This commit is contained in:
Tim Pope 2016-01-08 17:05:54 -05:00
parent 4dd41688cf
commit fd36aa9c61

View File

@ -2180,7 +2180,7 @@ call s:command("-bar -bang -range=0 -nargs=* -complete=customlist,s:EditComplete
function! s:Browse(bang,line1,count,...) abort function! s:Browse(bang,line1,count,...) abort
try try
let validremote = '\.\|\.\=/.*\|[[:alnum:]_-]\+\%(://.\{-\}\)' let validremote = '\.\|\.\=/.*\|[[:alnum:]_-]\+\%(://.\{-\}\)\='
if a:0 if a:0
let remote = matchstr(join(a:000, ' '),'@\zs\%('.validremote.'\)$') let remote = matchstr(join(a:000, ' '),'@\zs\%('.validremote.'\)$')
let rev = substitute(join(a:000, ' '),'@\%('.validremote.'\)$','','') let rev = substitute(join(a:000, ' '),'@\%('.validremote.'\)$','','')