Remove redundant exists(':Gblame') check

This command used to be restricted to file and blob buffers, but now
it's global, not to mention deprecated, and the check serves no purpose.
This commit is contained in:
Tim Pope
2020-02-29 08:01:28 -05:00
parent d0dceb9feb
commit e84f023edf

View File

@@ -5443,7 +5443,6 @@ function! s:BlameJump(suffix, ...) abort
execute 'Gedit' s:fnameescape(commit . suffix . ':' . path)
execute lnum
endif
if exists(':Gblame')
let my_bufnr = bufnr('')
if blame_bufnr < 0
let blame_args = flags + [commit . suffix, '--', path]
@@ -5465,8 +5464,7 @@ function! s:BlameJump(suffix, ...) abort
endif
keepjumps syncbind
redraw
echo ':Gblame' s:fnameescape(blame_args)
endif
echo ':Git blame' s:fnameescape(blame_args)
return ''
endfunction