mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 20:13:46 -05:00
Avoid unnamed buffer with :set hidden
Resolves: https://github.com/tpope/vim-fugitive/issues/2004
This commit is contained in:
@@ -6103,7 +6103,7 @@ function! s:BlurStatus() abort
|
|||||||
if len(winnrs)
|
if len(winnrs)
|
||||||
exe winnrs[0].'wincmd w'
|
exe winnrs[0].'wincmd w'
|
||||||
else
|
else
|
||||||
belowright new
|
belowright new +setl\ bufhidden=delete
|
||||||
endif
|
endif
|
||||||
if &diff
|
if &diff
|
||||||
call fugitive#DiffClose()
|
call fugitive#DiffClose()
|
||||||
|
|||||||
Reference in New Issue
Block a user