Skip to content

Commit 2e755c1

Browse files
author
skywind3000
committed
Force to use cmd.exe on Windows
1 parent 4261fa9 commit 2e755c1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

plugin/asyncrun.vim

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Maintainer: skywind3000 (at) gmail.com, 2016-2024
44
" Homepage: https://github.com/skywind3000/asyncrun.vim
55
"
6-
" Last Modified: 2024/05/14 03:50
6+
" Last Modified: 2024/05/22 00:41
77
"
88
" Run shell command in background and output to quickfix:
99
" :AsyncRun[!] [options] {cmd} ...
@@ -758,8 +758,11 @@ function! s:AsyncRun_Job_Start(cmd)
758758
let l:args += [a:cmd]
759759
else
760760
let l:tmp = s:ScriptWrite(a:cmd, 0)
761+
let l:args = ['cmd.exe', '/c']
761762
if s:async_nvim == 0
762763
let l:args += [l:tmp]
764+
elseif has('nvim-0.9.0')
765+
let l:args += [l:tmp]
763766
else
764767
let l:args = s:shellescape(l:tmp)
765768
endif
@@ -2305,7 +2308,7 @@ endfunc
23052308
" asyncrun - version
23062309
"----------------------------------------------------------------------
23072310
function! asyncrun#version()
2308-
return '2.12.6'
2311+
return '2.12.7'
23092312
endfunc
23102313

23112314

0 commit comments

Comments
 (0)