From fe4ba848ba37ed82c7ebda521becaa1f5a8f87e6 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 16 Mar 2024 12:35:36 -0400 Subject: [PATCH] Avoid reuse of winfixbuf windows References: https://github.com/tpope/vim-fugitive/issues/2272 --- autoload/fugitive.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 01ece76..5e6a7fe 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -6071,6 +6071,7 @@ endfunction function! s:UsableWin(nr) abort return a:nr && !getwinvar(a:nr, '&previewwindow') && !getwinvar(a:nr, '&winfixwidth') && + \ !getwinvar(a:nr, '&winfixbuf') && \ (empty(getwinvar(a:nr, 'fugitive_status')) || getbufvar(winbufnr(a:nr), 'fugitive_type') !=# 'index') && \ index(['gitrebase', 'gitcommit'], getbufvar(winbufnr(a:nr), '&filetype')) < 0 && \ index(['nofile','help','quickfix', 'terminal'], getbufvar(winbufnr(a:nr), '&buftype')) < 0