We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 377c7ab commit 29d6be8Copy full SHA for 29d6be8
plugin/asyncrun.vim
@@ -1096,12 +1096,16 @@ function! s:terminal_open(opts)
1096
let exe = ($ComSpec == '')? 'cmd.exe' : $ComSpec
1097
let command = exe . ' /C ' . command
1098
else
1099
+ let args = []
1100
if g:asyncrun_shell != ''
- let shell = g:asyncrun_shell . ' ' . g:asyncrun_shellflag
1101
+ let args += split(g:asyncrun_shell)
1102
+ let args += split(g:asyncrun_shellflag)
1103
- let shell = &shell . ' ' . &shellcmdflag
1104
+ let args += split(&shell)
1105
+ let args += split(&shellcmdflag)
1106
endif
- let command = shell . ' ' . shellescape(command)
1107
+ let args += [command]
1108
+ let command = args
1109
1110
1111
if has('nvim') == 0
0 commit comments