mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 12:33:46 -05:00
:Gblame: Retain original alternate buffer
This commit is contained in:
@@ -1483,7 +1483,7 @@ function! s:Blame(bang,line1,line2,count,args) abort
|
|||||||
let top = line('w0') + &scrolloff
|
let top = line('w0') + &scrolloff
|
||||||
let current = line('.')
|
let current = line('.')
|
||||||
let s:temp_files[temp] = s:repo().dir()
|
let s:temp_files[temp] = s:repo().dir()
|
||||||
exe 'leftabove vsplit '.temp
|
exe 'keepalt leftabove vsplit '.temp
|
||||||
let b:fugitive_blamed_bufnr = bufnr
|
let b:fugitive_blamed_bufnr = bufnr
|
||||||
let w:fugitive_leave = restore
|
let w:fugitive_leave = restore
|
||||||
let b:fugitive_blame_arguments = join(a:args,' ')
|
let b:fugitive_blame_arguments = join(a:args,' ')
|
||||||
|
|||||||
Reference in New Issue
Block a user