Change the method of construct cmd.exe command

This commit is contained in:
wunewww 2024-05-06 21:05:16 +08:00
parent 70eeae54fb
commit f3005984b9
1 changed files with 2 additions and 1 deletions

View File

@ -200,7 +200,8 @@ function! ale#job#PrepareCommand(buffer, command) abort
endif
if has('win32')
return 'cmd /s/c "' . l:command . '"'
" return 'cmd /s/c "' . l:command . '"'
return ['cmd', '/s/c'] + [l:command]
endif
if &shell =~? 'fish$\|pwsh$'