Skip to content

Commit 29d6be8

Browse files
author
skywind3000
committed
fixed terminal issues on linux
1 parent 377c7ab commit 29d6be8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

plugin/asyncrun.vim

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,12 +1096,16 @@ function! s:terminal_open(opts)
10961096
let exe = ($ComSpec == '')? 'cmd.exe' : $ComSpec
10971097
let command = exe . ' /C ' . command
10981098
else
1099+
let args = []
10991100
if g:asyncrun_shell != ''
1100-
let shell = g:asyncrun_shell . ' ' . g:asyncrun_shellflag
1101+
let args += split(g:asyncrun_shell)
1102+
let args += split(g:asyncrun_shellflag)
11011103
else
1102-
let shell = &shell . ' ' . &shellcmdflag
1104+
let args += split(&shell)
1105+
let args += split(&shellcmdflag)
11031106
endif
1104-
let command = shell . ' ' . shellescape(command)
1107+
let args += [command]
1108+
let command = args
11051109
endif
11061110
endif
11071111
if has('nvim') == 0

0 commit comments

Comments
 (0)