From fdc8569c1871dfdf9c2a2d0f645c47181dc7329c Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 26 Jun 2014 14:40:09 -0400 Subject: [PATCH] :Gblame in blame buffer deletes buffer Closes #511. --- plugin/fugitive.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index ca30419..862e51d 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -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')