From 3e32a556190df9da716c634ab09b3b29763707c9 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 9 Jan 2020 21:30:59 -0500 Subject: [PATCH] Avoid false positives on rebase todo handler --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] |