From 915c050724733e5649697a372822116c5b72da7e Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 23 Sep 2021 14:02:10 -0400 Subject: [PATCH] Fix :GBrowse - destination --- autoload/fugitive.vim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index f32b3ea..7170231 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -7145,12 +7145,10 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, ...) abor for line in readfile(result.file, '', 4096) let rev = s:fnameescape(matchstr(line, '\]*[^[:space:]<>.,;:"''!?]')) if len(rev) - break + return s:BrowserOpen(rev, a:mods, a:bang) endif endfor - if empty(rev) - return 'echoerr ' . string('fugitive: no URL found in output of :Git') - endif + return 'echoerr ' . string('fugitive: no URL found in output of :Git') endif exe s:DirCheck(dir) if empty(expanded)