Allow :GBrowse : to browse to repository homepage

This commit is contained in:
Tim Pope
2022-05-22 22:10:31 -04:00
parent fb32927ff5
commit 0e9f763c7b

View File

@@ -7276,8 +7276,6 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, ...) abor
endif endif
if rev =~? '^\a\a\+:[\/][\/]' && rev !~? '^fugitive:' if rev =~? '^\a\a\+:[\/][\/]' && rev !~? '^fugitive:'
let rev = substitute(rev, '\\\@<![#!]\|\\\@<!%\ze\w', '\\&', 'g') let rev = substitute(rev, '\\\@<![#!]\|\\\@<!%\ze\w', '\\&', 'g')
elseif rev ==# ':'
let rev = ''
endif endif
let expanded = s:Expand(rev) let expanded = s:Expand(rev)
if expanded =~? '^\a\a\+:[\/][\/]' && expanded !~? '^fugitive:' if expanded =~? '^\a\a\+:[\/][\/]' && expanded !~? '^fugitive:'