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