From d4683b39f0520cf1737891f05e54c41541444222 Mon Sep 17 00:00:00 2001 From: Anthony Carapetis Date: Wed, 1 Feb 2012 14:49:21 +1100 Subject: [PATCH] bugfix from Michael Ludwig for VIMRUNTIME paths with spaces (e.g. on windwos) --- syntax_checkers/perl.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syntax_checkers/perl.vim b/syntax_checkers/perl.vim index 34e3b014..3845d7a4 100644 --- a/syntax_checkers/perl.vim +++ b/syntax_checkers/perl.vim @@ -23,8 +23,9 @@ if !executable("perl") finish endif + if !exists("g:syntastic_perl_efm_program") - let g:syntastic_perl_efm_program = 'perl '.$VIMRUNTIME.'/tools/efm_perl.pl -c' + let g:syntastic_perl_efm_program = 'perl '. shellescape($VIMRUNTIME.'/tools/efm_perl.pl').' -c' endif function! SyntaxCheckers_perl_GetLocList()