mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-16 15:23:51 -05:00
Support :Git ++curwin blame %
This commit is contained in:
@@ -6680,7 +6680,7 @@ function! s:BlameSubcommand(line1, count, range, bang, mods, options) abort
|
|||||||
let reload = '|call fugitive#DidChange(fugitive#Result(' . string(temp_state.file) . '))'
|
let reload = '|call fugitive#DidChange(fugitive#Result(' . string(temp_state.file) . '))'
|
||||||
let mods = s:Mods(a:mods)
|
let mods = s:Mods(a:mods)
|
||||||
if a:count != 0
|
if a:count != 0
|
||||||
exe 'silent keepalt' mods 'split' s:fnameescape(temp)
|
exe 'silent keepalt' mods get(a:options, 'curwin') ? 'edit' : 'split' s:fnameescape(temp)
|
||||||
elseif !&modified || a:bang || &bufhidden ==# 'hide' || (empty(&bufhidden) && &hidden)
|
elseif !&modified || a:bang || &bufhidden ==# 'hide' || (empty(&bufhidden) && &hidden)
|
||||||
exe 'silent' mods 'edit' . (a:bang ? '! ' : ' ') . s:fnameescape(temp)
|
exe 'silent' mods 'edit' . (a:bang ? '! ' : ' ') . s:fnameescape(temp)
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user