Skip to content

Commit 5b58b6d

Browse files
committed
Handle spaces in 'shell' and 'shellcmdflag'
1 parent a625661 commit 5b58b6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/dispatch/job.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function! dispatch#job#handle(request) abort
1919
return 0
2020
endif
2121
if exists('*job_start')
22-
let job = job_start([&shell, &shellcmdflag, a:request.expanded], {
22+
let job = job_start(split(&shell) + split(&shellcmdflag) + [a:request.expanded], {
2323
\ 'mode': 'raw',
2424
\ 'callback': function('s:output'),
2525
\ 'close_cb': function('s:closed'),

0 commit comments

Comments
 (0)