Fix :GBrowse in :Git blame window

This commit is contained in:
Tim Pope
2022-06-18 00:32:21 -04:00
parent 1aefa1aed2
commit bef885fd00

View File

@@ -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)