mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 19:43:46 -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')
|
if !exists('l:result')
|
||||||
let result = s:TempState(empty(expanded) ? bufnr('') : expanded)
|
let result = s:TempState(empty(expanded) ? bufnr('') : expanded)
|
||||||
endif
|
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)
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user