From 3a01f4b819b2a923074d28c3d874dc7acfb4efc5 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 22 Aug 2019 19:14:59 -0500 Subject: [PATCH] Remove toggling behavior of :Gblame References https://github.com/tpope/vim-fugitive/issues/1316 --- autoload/fugitive.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index b012f20..a90d88d 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -4775,13 +4775,11 @@ function! s:BlameSubcommand(line1, count, range, bang, mods, args) abort endif let i += 1 endwhile - if empty(ranges + commits + files) && has_key(s:TempState(), 'blame_flags') - return substitute(s:BlameLeave(), '^$', 'bdelete', '') - endif let file = substitute(get(files, 0, get(s:TempState(), 'blame_file', s:Relative('./'))), '^\.\%(/\|$\)', '', '') if empty(commits) && len(files) > 1 call add(commits, remove(files, 1)) endif + exe s:BlameLeave() try let cmd = ['--no-pager', '-c', 'blame.coloring=none', '-c', 'blame.blankBoundary=false', 'blame', '--show-number'] call extend(cmd, filter(copy(flags), 'v:val !~# "\\v^%(-b|--%(no-)=color-.*|--progress)$"'))