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 *