diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 724bc92..e8a5f89 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -3793,7 +3793,7 @@ endfunction augroup fugitive_merge autocmd! autocmd VimLeavePre,BufDelete git-rebase-todo - \ if getbufvar(+expand(''), '&bufhidden') ==# 'wipe' | + \ if type(getbufvar(+expand(''), 'fugitive_rebase_shas')) == type({}) && getbufvar(+expand(''), '&bufhidden') ==# 'wipe' | \ call s:RebaseClean(expand('')) | \ if getfsize(FugitiveFind('.git/rebase-merge/done', +expand(''))) == 0 | \ let s:rebase_continue = [FugitiveGitDir(+expand('')), 1] |