commit fdc8569c1871dfdf9c2a2d0f645c47181dc7329c (tree)
parent 7fb703534a27f73edc0867f9eacd48dd6da944e2
Author: Tim Pope <code@tpope.net>
Date: Thu, 26 Jun 2014 14:40:09 -0400
:Gblame in blame buffer deletes buffer
Closes #511.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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')