From c666c868824fbef5237e3af24e5913e5c8974cd1 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 1 Dec 2021 19:48:43 -0500 Subject: [PATCH] Fix blame from stage buffer References: https://github.com/tpope/vim-fugitive/issues/1892 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index b3909bf..bcd512c 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -6771,7 +6771,7 @@ function! s:BlameSubcommand(line1, count, range, bang, mods, options) abort elseif empty(files) && len(matchstr(s:DirCommitFile(@%)[1], '^\x\x\+$')) let cmd += [matchstr(s:DirCommitFile(@%)[1], '^\x\x\+$')] elseif empty(files) && !s:HasOpt(flags, '--reverse') - if &modified + if &modified || !empty(s:DirCommitFile(@%)[1]) let cmd += ['--contents', tempname . '.in'] silent execute 'noautocmd keepalt %write ' . s:fnameescape(tempname . '.in') let delete_in = 1