Fix reference to rebase buffer when closing tab

This commit is contained in:
Tim Pope
2019-01-01 19:27:47 -05:00
parent 037965583e
commit 054ac50975

View File

@@ -2467,10 +2467,10 @@ endfunction
augroup fugitive_merge
autocmd!
autocmd VimLeavePre,BufDelete git-rebase-todo
\ if &bufhidden ==# 'wipe' |
\ if getbufvar(+expand('<abuf>'), '&bufhidden') ==# 'wipe' |
\ call s:RebaseClean(expand('<afile>')) |
\ if getfsize(fugitive#Find('.git/rebase-merge/done')) == 0 |
\ let s:rebase_continue = b:git_dir |
\ if getfsize(FugitiveFind('.git/rebase-merge/done', +expand('<abuf>'))) == 0 |
\ let s:rebase_continue = FugitiveGitDir(+expand('<abuf>')) |
\ endif |
\ endif
autocmd BufEnter *