mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-05-17 05:49:44 +08:00
Use blamed file when calling :Gbrowse in blame buffer
This commit is contained in:
@@ -626,7 +626,11 @@ function! fugitive#Path(url, ...) abort
|
|||||||
endwhile
|
endwhile
|
||||||
return a:1[0:-2] . path
|
return a:1[0:-2] . path
|
||||||
endif
|
endif
|
||||||
let url = s:Slash(fnamemodify(a:url, ':p'))
|
let url = a:url
|
||||||
|
if has_key(get(s:temp_files, s:cpath(url), {}), 'bufnr')
|
||||||
|
let url = bufname(s:temp_files[s:cpath(url)].bufnr)
|
||||||
|
endif
|
||||||
|
let url = s:Slash(fnamemodify(url, ':p'))
|
||||||
if url =~# '/$' && s:Slash(a:url) !~# '/$'
|
if url =~# '/$' && s:Slash(a:url) !~# '/$'
|
||||||
let url = url[0:-2]
|
let url = url[0:-2]
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user