diff --git a/autoload/classpath.vim b/autoload/classpath.vim index 67c259b..e60e67b 100644 --- a/autoload/classpath.vim +++ b/autoload/classpath.vim @@ -38,7 +38,7 @@ function! classpath#from_vim(path) abort if elem ==# '' let path += ['.'] else - let path += split(glob(substitute(elem, '\\\ze[\\ ,]', '', 'g')), "\n") + let path += split(glob(substitute(elem, '\\\ze[\\ ,]', '', 'g'), 1), "\n") endif endfor return join(path, classpath#separator()) diff --git a/plugin/foreplay.vim b/plugin/foreplay.vim index 1b7b71e..ae39745 100644 --- a/plugin/foreplay.vim +++ b/plugin/foreplay.vim @@ -47,14 +47,14 @@ endfunction function! foreplay#ns_complete(A, L, P) abort let matches = [] for pattern in split(&path, ',') - for dir in split(glob(pattern), "\n") + for dir in split(glob(pattern, 1), "\n") if dir =~# '\.jar$' && executable('zipinfo') let files = split(system('zipinfo -1 '.shellescape(dir).' "*.clj"'), "\n") if v:shell_error let files = [] endif else - let files = split(glob(dir."/**/*.clj"), "\n") + let files = split(glob(dir."/**/*.clj", 1), "\n") call map(files, 'v:val[strlen(dir)+1 : -1]') endif let matches += files