diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 2fe01d9..9bfb8c7 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2070,15 +2070,17 @@ function! s:BlameJump(suffix) abort if winnr > 0 exe bufnr.'bdelete' endif - execute 'Gblame '.args - execute lnum - let delta = line('.') - line('w0') - offset - if delta > 0 - execute 'normal! '.delta."\" - elseif delta < 0 - execute 'normal! '.(-delta)."\" + if exists(':Gblame') + execute 'Gblame '.args + execute lnum + let delta = line('.') - line('w0') - offset + if delta > 0 + execute 'normal! '.delta."\" + elseif delta < 0 + execute 'normal! '.(-delta)."\" + endif + syncbind endif - syncbind return '' endfunction