From 25c38096bd717bb671c01abf7955f5cf367a2343 Mon Sep 17 00:00:00 2001 From: Igor Tatarintsev Date: Thu, 17 Mar 2016 09:12:28 +0600 Subject: [PATCH] Fixed tpope/vim-fugitive plugin incompatibility --- autoload/Phpqa.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/Phpqa.vim b/autoload/Phpqa.vim index f74337f..b6717cc 100644 --- a/autoload/Phpqa.vim +++ b/autoload/Phpqa.vim @@ -93,7 +93,7 @@ function! Phpqa#PhpLint() let l:php_output=system(g:phpqa_php_cmd." -l ".@%." 1>/dev/null") let l:php_list=split(l:php_output, "\n") - if 0 != v:shell_error && match(l:php_list[0],"No syntax errors") == -1 + if 0 != v:shell_error && !empty(l:php_list) && match(l:php_list[0],"No syntax errors") == -1 let l:php_list[0] = "P ".l:php_list[0] set errorformat=%t\ %m\ in\ %f\ on\ line\ %l lexpr l:php_list[0]