From f60fc79e53324a7ad90ed11c1f3342decb7f06be Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 1 Jun 2022 12:53:42 -0400 Subject: [PATCH] Avoid unnamed buffer with :set hidden Resolves: https://github.com/tpope/vim-fugitive/issues/2004 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index b3c2d98..7799520 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -6103,7 +6103,7 @@ function! s:BlurStatus() abort if len(winnrs) exe winnrs[0].'wincmd w' else - belowright new + belowright new +setl\ bufhidden=delete endif if &diff call fugitive#DiffClose()