From 557cc741418bc39d4431a77062473532ae1fbc30 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 15 Aug 2019 11:49:49 -0400 Subject: [PATCH] Fix syntax error Closes https://github.com/tpope/vim-fugitive/issues/1310 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 94b115d..c14c579 100644 --- 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') && !getwinvar(a:nr, '&winfixwidth') + 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