Fix classpath detection on Windows

This commit is contained in:
Tim Pope 2012-12-31 20:22:18 -05:00
parent a31c98c9ef
commit 8fc624b04e

View File

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