mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Fix :GBrowse in :Git blame window
This commit is contained in:
@@ -7250,7 +7250,7 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, ...) abor
|
||||
if !exists('l:result')
|
||||
let result = s:TempState(empty(expanded) ? bufnr('') : expanded)
|
||||
endif
|
||||
if !empty(result) && filereadable(get(result, 'file', ''))
|
||||
if !get(result, 'origin_bufnr', 1) && filereadable(get(result, 'file', ''))
|
||||
for line in readfile(result.file, '', 4096)
|
||||
let rev = s:fnameescape(matchstr(line, '\<https\=://[^[:space:]<>]*[^[:space:]<>.,;:"''!?]'))
|
||||
if len(rev)
|
||||
|
||||
Reference in New Issue
Block a user