mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
Fix check for :Gstatus window
This commit is contained in:
@@ -2859,7 +2859,7 @@ function! s:EditParse(args) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:BlurStatus() abort
|
function! s:BlurStatus() abort
|
||||||
if &previewwindow && get(b:,'fugitive_type', '') ==# 'index' || exists('w:fugitive_status')
|
if (&previewwindow || exists('w:fugitive_status')) && get(b:,'fugitive_type', '') ==# 'index'
|
||||||
let winnrs = filter([winnr('#')] + range(1, winnr('$')), 's:UsableWin(v:val)')
|
let winnrs = filter([winnr('#')] + range(1, winnr('$')), 's:UsableWin(v:val)')
|
||||||
if len(winnrs)
|
if len(winnrs)
|
||||||
exe winnrs[0].'wincmd w'
|
exe winnrs[0].'wincmd w'
|
||||||
|
|||||||
Reference in New Issue
Block a user