From 49e0e52d512a370b53f315fcb83e0e84ebba4d86 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Wed, 2 Nov 2022 11:56:07 +0800 Subject: [PATCH] fix(jc2): fix jc2 classpath --- .../autoload/javacomplete/classpath/classpath.vim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bundle/vim-javacomplete2/autoload/javacomplete/classpath/classpath.vim b/bundle/vim-javacomplete2/autoload/javacomplete/classpath/classpath.vim index 8a5d1def0..b4ecc7f3a 100644 --- a/bundle/vim-javacomplete2/autoload/javacomplete/classpath/classpath.vim +++ b/bundle/vim-javacomplete2/autoload/javacomplete/classpath/classpath.vim @@ -50,9 +50,12 @@ function! s:BuildClassPath(force) endif endif - let g:JavaComplete_LibsPath .= s:FindClassPath(a:force) - + let found_classpath = s:FindClassPath(a:force) + if found_classpath != '.' || g:JavaComplete_LibsPath != '.' + let g:JavaComplete_LibsPath .= found_classpath + endif call s:Log("libs found: ". g:JavaComplete_LibsPath) + endfunction function! s:ReadClassPathFile(classpathFile)