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)