mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-08 04:54:46 +08:00
Remove dependency on repo in :Gbrowse
This commit is contained in:
@@ -218,7 +218,7 @@ endfunction
|
|||||||
" Section: Fugitive :Gbrowse support
|
" Section: Fugitive :Gbrowse support
|
||||||
|
|
||||||
function! rhubarb#fugitive_url(opts, ...) abort
|
function! rhubarb#fugitive_url(opts, ...) abort
|
||||||
if a:0 || type(a:opts) != type({}) || !has_key(a:opts, 'repo')
|
if a:0 || type(a:opts) != type({})
|
||||||
return ''
|
return ''
|
||||||
endif
|
endif
|
||||||
let root = rhubarb#homepage_for_url(get(a:opts, 'remote'))
|
let root = rhubarb#homepage_for_url(get(a:opts, 'remote'))
|
||||||
|
|||||||
Reference in New Issue
Block a user