mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 12:03:47 -05:00
Track correct window when blaming twice-open buffer
Resolves: https://github.com/tpope/vim-fugitive/issues/1992
This commit is contained in:
@@ -6939,7 +6939,7 @@ function! s:BlameSubcommand(line1, count, range, bang, mods, options) abort
|
|||||||
execute winbufnr(winnr).'bdelete'
|
execute winbufnr(winnr).'bdelete'
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
let restore_winnr = 'bufwinnr(' . bufnr . ')'
|
let restore_winnr = exists('*win_getid') ? win_getid() : 'bufwinnr(' . bufnr . ')'
|
||||||
if !&l:scrollbind
|
if !&l:scrollbind
|
||||||
call add(restore, 'call setwinvar(' . restore_winnr . ',"&scrollbind",0)')
|
call add(restore, 'call setwinvar(' . restore_winnr . ',"&scrollbind",0)')
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user