Fix :GBrowse with no argument

This commit is contained in:
Tim Pope
2021-03-24 17:41:58 -04:00
parent 156dbcd738
commit 9103a738c7

View File

@@ -5821,7 +5821,7 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, args) abo
else
return 'echoerr ' . string('fugitive: use :0GBrowse instead of :GBrowse -')
endif
elseif len(arg) && !exists('l:remote')
elseif !exists('l:remote')
let remote = matchstr(arg, '@\zs\%('.validremote.'\)$')
let rev = substitute(arg, '@\%('.validremote.'\)$','','')
else