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 222c9ccbc6eec0fee4ab218b0d0bc13d985bfb7c (tree)
parent 8ede0aaf57e1dbb5416ddbe30d0bfdde762e90bf
Author: Tim Pope <code@tpope.net>
Date:   Thu,  8 Apr 2021 20:43:49 -0400

Don't trigger BufWrite during :Git blame

Closes https://github.com/tpope/vim-fugitive/issues/1724

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

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -5709,7 +5709,7 @@ function! s:BlameSubcommand(line1, count, range, bang, mods, options) abort let cmd += [matchstr(s:DirCommitFile(@%)[1], '^\x\x\+$')] elseif empty(files) && !s:HasOpt(flags, '--reverse') let cmd += ['--contents', tempname . '.in'] - silent execute 'keepalt %write ' . s:fnameescape(tempname . '.in') + silent execute 'noautocmd keepalt %write ' . s:fnameescape(tempname . '.in') let delete_in = 1 endif let basecmd = [{'git': a:options.git, 'dir': dir}] + ['--literal-pathspecs'] + cmd + ['--'] + (len(files) ? files : [file])