From d0e277c7bedc50a6bb0616bf2980c2f9e66aa32d Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 11 Mar 2021 01:36:21 -0500 Subject: [PATCH] Don't try to reuse terminal buffers for status window edits Closes https://github.com/tpope/vim-fugitive/issues/1652 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 855a4ac..47c23d4 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -4448,7 +4448,7 @@ function! s:UsableWin(nr) abort return a:nr && !getwinvar(a:nr, '&previewwindow') && !getwinvar(a:nr, '&winfixwidth') && \ (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'], getbufvar(winbufnr(a:nr), '&buftype')) < 0 + \ index(['nofile','help','quickfix', 'terminal'], getbufvar(winbufnr(a:nr), '&buftype')) < 0 endfunction function! s:OpenParse(args, wants_cmd) abort