Pass bang to :Gblame to get horizontal split
Closes https://github.com/tpope/vim-fugitive/issues/1183
This commit is contained in:
parent
362ce47ed1
commit
e49b9a9303
@ -4122,7 +4122,7 @@ function! s:BlameCommand(line1, line2, range, count, bang, mods, reg, arg, args)
|
|||||||
let current = line('.')
|
let current = line('.')
|
||||||
let temp = s:Resolve(temp)
|
let temp = s:Resolve(temp)
|
||||||
let s:temp_files[s:cpath(temp)] = { 'dir': s:Dir(), 'filetype': 'fugitiveblame', 'args': cmd, 'bufnr': bufnr }
|
let s:temp_files[s:cpath(temp)] = { 'dir': s:Dir(), 'filetype': 'fugitiveblame', 'args': cmd, 'bufnr': bufnr }
|
||||||
exe 'keepalt leftabove vsplit '.temp
|
exe 'keepalt' (a:bang ? 'split' : 'leftabove vsplit') . temp
|
||||||
let b:fugitive_blamed_bufnr = bufnr
|
let b:fugitive_blamed_bufnr = bufnr
|
||||||
let b:fugitive_type = 'blame'
|
let b:fugitive_type = 'blame'
|
||||||
let w:fugitive_leave = restore
|
let w:fugitive_leave = restore
|
||||||
|
Loading…
x
Reference in New Issue
Block a user