Fix classpath detection on Windows
This commit is contained in:
parent
a31c98c9ef
commit
8fc624b04e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user