motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 8f169a84ff4f710026e43e01ec1ede7bb9f60032 (tree)
parent d9a914b14df9b43f0437f0dd43c2fb23083b2a31
Author: Tim Pope <code@tpope.net>
Date:   Fri,  1 Apr 2022 18:26:10 -0400

Allow simultaneous blames in diffed buffers

References: https://github.com/tpope/vim-fugitive/pull/1327

Diffstat:
Mautoload/fugitive.vim | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -6924,7 +6924,8 @@ function! s:BlameSubcommand(line1, count, range, bang, mods, options) abort call add(restore, 'call setwinvar(bufwinnr('.winbufnr(winnr).'),"&foldenable",1)') endif endif - if s:BlameBufnr(winbufnr(winnr)) > 0 + let win_blame_bufnr = s:BlameBufnr(winbufnr(winnr)) + if getwinvar(winnr, '&scrollbind') ? win_blame_bufnr == bufnr : win_blame_bufnr > 0 execute winbufnr(winnr).'bdelete' endif endfor