mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-10 07:15:57 +08:00
Don't reuse blame buffers for Gstatus edits
This commit is contained in:
1 parent
6cc52a1aab
commit
b887de5ce2
1 file changed
+1
-1
@@ -3877,7 +3877,7 @@ call s:command("-bang -nargs=? -range=-1 -addr=other -complete=customlist,s:LogC
|
|||||||
" Section: :Gedit, :Gpedit, :Gsplit, :Gvsplit, :Gtabedit, :Gread
|
" Section: :Gedit, :Gpedit, :Gsplit, :Gvsplit, :Gtabedit, :Gread
|
||||||
|
|
||||||
function! s:UsableWin(nr) abort
|
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') &&
|
\ (empty(getwinvar(a:nr, 'fugitive_status')) || getbufvar(winbufnr(a:nr), 'fugitive_type') !=# 'index') &&
|
||||||
\ index(['gitrebase', 'gitcommit'], getbufvar(winbufnr(a:nr), '&filetype')) < 0 &&
|
\ index(['gitrebase', 'gitcommit'], getbufvar(winbufnr(a:nr), '&filetype')) < 0 &&
|
||||||
\ index(['nofile','help','quickfix'], getbufvar(winbufnr(a:nr), '&buftype')) < 0
|
\ index(['nofile','help','quickfix'], getbufvar(winbufnr(a:nr), '&buftype')) < 0
|
||||||
|
|||||||
Reference in new issue
Block a user