From 4df6525284c42af82ca8790ef5c65c9fa0143e79 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 3 Jan 2019 22:47:24 -0500 Subject: [PATCH] Fix check for :Gstatus window --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index fedc6bc..d7e1f45 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2859,7 +2859,7 @@ function! s:EditParse(args) abort endfunction 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)') if len(winnrs) exe winnrs[0].'wincmd w'