Fix classpath detection on Windows

This commit is contained in:
Tim Pope 2012-12-31 20:22:18 -05:00
parent a31c98c9ef
commit 8fc624b04e
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ function! classpath#detect(...) abort
if &verbose if &verbose
echomsg 'Determining class path with '.cmd.' ...' echomsg 'Determining class path with '.cmd.' ...'
endif endif
let out = system('cd ' . shellescape(root) . ' && ' . cmd) let out = system('cd ' . shellescape(root) . (&shell =~? 'cmd' ? '; ' : ' && ') . cmd)
catch /^Vim:Interrupt/ catch /^Vim:Interrupt/
return default return default
endtry endtry