From 054ac509758f18992b8357159e80c4d03daf1505 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 1 Jan 2019 19:27:47 -0500 Subject: [PATCH] Fix reference to rebase buffer when closing tab --- autoload/fugitive.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index ec880cb..bf8ab23 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2467,10 +2467,10 @@ endfunction augroup fugitive_merge autocmd! autocmd VimLeavePre,BufDelete git-rebase-todo - \ if &bufhidden ==# 'wipe' | + \ if getbufvar(+expand(''), '&bufhidden') ==# 'wipe' | \ call s:RebaseClean(expand('')) | - \ if getfsize(fugitive#Find('.git/rebase-merge/done')) == 0 | - \ let s:rebase_continue = b:git_dir | + \ if getfsize(FugitiveFind('.git/rebase-merge/done', +expand(''))) == 0 | + \ let s:rebase_continue = FugitiveGitDir(+expand('')) | \ endif | \ endif autocmd BufEnter *