mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-04 19:28:58 +08:00
Fix :GBrowse - destination
This commit is contained in:
1 parent
142a0dc0c4
commit
915c050724
1 file changed
+2
-4
@@ -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, '\<https\=://[^[:space:]<>]*[^[: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)
|
||||
|
||||
Reference in new issue
Block a user