mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-16 23:33:43 -05:00
Fix :GBrowse - destination
This commit is contained in:
@@ -7145,12 +7145,10 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, ...) abor
|
|||||||
for line in readfile(result.file, '', 4096)
|
for line in readfile(result.file, '', 4096)
|
||||||
let rev = s:fnameescape(matchstr(line, '\<https\=://[^[:space:]<>]*[^[:space:]<>.,;:"''!?]'))
|
let rev = s:fnameescape(matchstr(line, '\<https\=://[^[:space:]<>]*[^[:space:]<>.,;:"''!?]'))
|
||||||
if len(rev)
|
if len(rev)
|
||||||
break
|
return s:BrowserOpen(rev, a:mods, a:bang)
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
if empty(rev)
|
return 'echoerr ' . string('fugitive: no URL found in output of :Git')
|
||||||
return 'echoerr ' . string('fugitive: no URL found in output of :Git')
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
exe s:DirCheck(dir)
|
exe s:DirCheck(dir)
|
||||||
if empty(expanded)
|
if empty(expanded)
|
||||||
|
|||||||
Reference in New Issue
Block a user