:Gblame in blame buffer deletes buffer

Closes #511.
This commit is contained in:
Tim Pope 2014-06-26 14:40:09 -04:00
parent 7fb703534a
commit fdc8569c18

View File

@ -1802,6 +1802,9 @@ function! s:linechars(pattern) abort
endfunction
function! s:Blame(bang,line1,line2,count,args) abort
if exists('b:fugitive_blamed_bufnr')
return 'bdelete'
endif
try
if s:buffer().path() == ''
call s:throw('file or blob required')