From 9f798fa4efaad3884f46449d1b0e56f1f7b16dee Mon Sep 17 00:00:00 2001 From: troydm Date: Wed, 19 Dec 2012 18:20:38 +0400 Subject: [PATCH] javac quotes changed to fnameescape --- syntax_checkers/java/javac.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax_checkers/java/javac.vim b/syntax_checkers/java/javac.vim index 17f867b5..b341694d 100644 --- a/syntax_checkers/java/javac.vim +++ b/syntax_checkers/java/javac.vim @@ -197,7 +197,7 @@ function! SyntaxCheckers_java_GetLocList() endif if javac_classpath != '' - let javac_opts .= ' -cp ' . javac_classpath + let javac_opts .= ' -cp ' . fnameescape(javac_classpath) endif @@ -209,7 +209,7 @@ function! SyntaxCheckers_java_GetLocList() endif let makeprg = g:syntastic_java_javac_executable . ' '. javac_opts . ' ' - \. '"'.expand ( '%:p:h' ) . sep . expand ( '%:t' ).'"' + \. fnameescape(expand ( '%:p:h' ) . sep . expand ( '%:t' )) \. ' 2>&1 ' " unashamedly stolen from *errorformat-javac* (quickfix.txt) and modified to include error types