Bug fix: the result of expand('<sfile>:p:h') has to be escaped.

This commit is contained in:
LCD 47 2014-02-06 11:58:30 +02:00
parent d5878818b8
commit 4c2004d2e5
3 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ if !exists('g:syntastic_erlc_include_path')
let g:syntastic_erlc_include_path = ''
endif
let s:check_file = expand('<sfile>:p:h') . syntastic#util#Slash() . 'erlang_check_file.erl'
let s:check_file = syntastic#util#shescape(expand('<sfile>:p:h') . syntastic#util#Slash() . 'erlang_check_file.erl')
let s:save_cpo = &cpo
set cpo&vim

View File

@ -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('<sfile>:p:h') . syntastic#util#Slash() . 'less-lint.js'
let s:check_file = 'node ' . syntastic#util#shescape(expand('<sfile>:p:h') . syntastic#util#Slash() . 'less-lint.js')
else
let s:check_file = 'lessc'
endif

View File

@ -18,7 +18,7 @@ let g:loaded_syntastic_python_python_checker = 1
let s:save_cpo = &cpo
set cpo&vim
let s:compiler = expand('<sfile>:p:h') . syntastic#util#Slash() . 'compile.py'
let s:compiler = syntastic#util#shescape(expand('<sfile>:p:h') . syntastic#util#Slash() . 'compile.py')
function! SyntaxCheckers_python_python_IsAvailable() dict
let exe = self.getExec()