commit b887de5ce2036bccb124a1d856f5d6489e8e32e5 (tree)
parent 6cc52a1aabff060fdbdb1c1c3a47a9c6e96ad8b3
Author: Tim Pope <code@tpope.net>
Date: Thu, 15 Aug 2019 03:41:29 -0400
Don't reuse blame buffers for Gstatus edits
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -3877,7 +3877,7 @@ call s:command("-bang -nargs=? -range=-1 -addr=other -complete=customlist,s:LogC
" Section: :Gedit, :Gpedit, :Gsplit, :Gvsplit, :Gtabedit, :Gread
function! s:UsableWin(nr) abort
- return a:nr && !getwinvar(a:nr, '&previewwindow') &&
+ 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