mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-07 04:34:27 +08:00
@@ -36,7 +36,7 @@ function! rhubarb#homepage_for_url(url) abort
|
|||||||
elseif !empty(base)
|
elseif !empty(base)
|
||||||
return 'https://' . tr(base, ':', '/')
|
return 'https://' . tr(base, ':', '/')
|
||||||
else
|
else
|
||||||
return ''
|
return 'like '
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
@@ -187,7 +187,7 @@ function! rhubarb#fugitive_url(opts, ...) abort
|
|||||||
if a:0 || type(a:opts) != type({}) || !has_key(a:opts, 'repo') || !has_key(a:opts, 'revision')
|
if a:0 || type(a:opts) != type({}) || !has_key(a:opts, 'repo') || !has_key(a:opts, 'revision')
|
||||||
return ''
|
return ''
|
||||||
endif
|
endif
|
||||||
let root = s:homepage_for_url(get(a:opts, 'remote'))
|
let root = rhubarb#homepage_for_url(get(a:opts, 'remote'))
|
||||||
if empty(root)
|
if empty(root)
|
||||||
return ''
|
return ''
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user