From 9103a738c7b2ac4254f4a13be3a1d5c970b10afb Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 24 Mar 2021 17:41:58 -0400 Subject: [PATCH] Fix :GBrowse with no argument --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index aac79c6..6aad393 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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