Checker javac: fix shell escaping in custom_classpath_command.

This commit is contained in:
LCD 47 2015-06-25 19:09:46 +03:00
parent c39563d95b
commit dc15fa08c5
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START
endif
let g:_SYNTASTIC_VERSION = '3.6.0-106'
let g:_SYNTASTIC_VERSION = '3.6.0-107'
lockvar g:_SYNTASTIC_VERSION
" Sanity checks {{{1

View File

@ -134,7 +134,7 @@ function! SyntaxCheckers_java_javac_GetLocList() dict " {{{1
for sub in [['\V%FILE_PATH%', expand('%:p')],
\ ['\V%FILE_NAME%', expand('%:t')],
\ ['\V%FILE_DIR%', expand('%:p:h')]]
let classpath_command = substitute(classpath_command, sub[0], sub[1], 'g')
let classpath_command = substitute(classpath_command, sub[0], syntastic#util#shexpand(sub[1]), 'g')
endfor
let lines = syntastic#util#system(classpath_command)
if syntastic#util#isRunningWindows() || has('win32unix')