From 4c2004d2e5f04d6a10a0331aab8070e9c9fb5b39 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Thu, 6 Feb 2014 11:58:30 +0200 Subject: [PATCH] Bug fix: the result of expand(':p:h') has to be escaped. --- syntax_checkers/erlang/escript.vim | 2 +- syntax_checkers/less/lessc.vim | 2 +- syntax_checkers/python/python.vim | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/syntax_checkers/erlang/escript.vim b/syntax_checkers/erlang/escript.vim index 0ddd4e13..ed299ec8 100644 --- a/syntax_checkers/erlang/escript.vim +++ b/syntax_checkers/erlang/escript.vim @@ -19,7 +19,7 @@ if !exists('g:syntastic_erlc_include_path') let g:syntastic_erlc_include_path = '' endif -let s:check_file = expand(':p:h') . syntastic#util#Slash() . 'erlang_check_file.erl' +let s:check_file = syntastic#util#shescape(expand(':p:h') . syntastic#util#Slash() . 'erlang_check_file.erl') let s:save_cpo = &cpo set cpo&vim diff --git a/syntax_checkers/less/lessc.vim b/syntax_checkers/less/lessc.vim index 714c362f..853524eb 100644 --- a/syntax_checkers/less/lessc.vim +++ b/syntax_checkers/less/lessc.vim @@ -34,7 +34,7 @@ let s:save_cpo = &cpo set cpo&vim if g:syntastic_less_use_less_lint - let s:check_file = 'node ' . expand(':p:h') . syntastic#util#Slash() . 'less-lint.js' + let s:check_file = 'node ' . syntastic#util#shescape(expand(':p:h') . syntastic#util#Slash() . 'less-lint.js') else let s:check_file = 'lessc' endif diff --git a/syntax_checkers/python/python.vim b/syntax_checkers/python/python.vim index 4769f3f5..3ff74f54 100644 --- a/syntax_checkers/python/python.vim +++ b/syntax_checkers/python/python.vim @@ -18,7 +18,7 @@ let g:loaded_syntastic_python_python_checker = 1 let s:save_cpo = &cpo set cpo&vim -let s:compiler = expand(':p:h') . syntastic#util#Slash() . 'compile.py' +let s:compiler = syntastic#util#shescape(expand(':p:h') . syntastic#util#Slash() . 'compile.py') function! SyntaxCheckers_python_python_IsAvailable() dict let exe = self.getExec()