Skip to content

Commit fe4ba84

Browse files
committed
Avoid reuse of winfixbuf windows
References: #2272
1 parent 41beeda commit fe4ba84

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

autoload/fugitive.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6071,6 +6071,7 @@ endfunction
60716071

60726072
function! s:UsableWin(nr) abort
60736073
return a:nr && !getwinvar(a:nr, '&previewwindow') && !getwinvar(a:nr, '&winfixwidth') &&
6074+
\ !getwinvar(a:nr, '&winfixbuf') &&
60746075
\ (empty(getwinvar(a:nr, 'fugitive_status')) || getbufvar(winbufnr(a:nr), 'fugitive_type') !=# 'index') &&
60756076
\ index(['gitrebase', 'gitcommit'], getbufvar(winbufnr(a:nr), '&filetype')) < 0 &&
60766077
\ index(['nofile','help','quickfix', 'terminal'], getbufvar(winbufnr(a:nr), '&buftype')) < 0

0 commit comments

Comments
 (0)