From c39563d95b6085311591e451bbccb4204dfada3a Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Thu, 25 Jun 2015 16:27:58 +0300 Subject: [PATCH] Checker javac: cleanup. --- plugin/syntastic.vim | 2 +- syntax_checkers/java/javac.vim | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index ac164113..e7b253b8 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -19,7 +19,7 @@ if has('reltime') lockvar! g:_SYNTASTIC_START endif -let g:_SYNTASTIC_VERSION = '3.6.0-103' +let g:_SYNTASTIC_VERSION = '3.6.0-106' lockvar g:_SYNTASTIC_VERSION " Sanity checks {{{1 diff --git a/syntax_checkers/java/javac.vim b/syntax_checkers/java/javac.vim index da6e4a9c..08025e3a 100644 --- a/syntax_checkers/java/javac.vim +++ b/syntax_checkers/java/javac.vim @@ -131,12 +131,12 @@ function! SyntaxCheckers_java_javac_GetLocList() dict " {{{1 if g:syntastic_java_javac_custom_classpath_command !=# '' " Pre-process the classpath command string a little. let classpath_command = g:syntastic_java_javac_custom_classpath_command - for sub in [['%FILE_PATH%', expand('%:p')], - \ ['%FILE_NAME%', expand('%:t')], - \ ['%FILE_DIR%', expand('%:p:h')]] + 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') endfor - let lines = system(classpath_command) + let lines = syntastic#util#system(classpath_command) if syntastic#util#isRunningWindows() || has('win32unix') let lines = substitute(lines, "\r\n", "\n", 'g') endif