From d4e0c2eee8fb49d9cbeae9c917424be4b0286e4d Mon Sep 17 00:00:00 2001 From: troydm Date: Wed, 23 Jan 2013 22:26:43 +0400 Subject: [PATCH] javac checker added fix for glob function --- syntax_checkers/java/javac.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/syntax_checkers/java/javac.vim b/syntax_checkers/java/javac.vim index 46da8ce8..fcbbe81d 100644 --- a/syntax_checkers/java/javac.vim +++ b/syntax_checkers/java/javac.vim @@ -180,7 +180,11 @@ function! SyntaxCheckers_java_GetLocList() " add classpathes to javac_classpath for path in split(g:syntastic_java_javac_classpath,"\n") if path != '' - let ps = glob(path,0,1) + try + let ps = glob(path,0,1) + catch + let ps = split(glob(path,0),"\n") + endtry if type(ps) == type([]) for p in ps if p != '' | let javac_classpath = s:AddToClasspath(javac_classpath,p) | endif