Skip to content

Commit 1ea256e

Browse files
committed
Don't wait on a spawned shell
1 parent c82af58 commit 1ea256e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autoload/dispatch.vim

+3
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,9 @@ function! dispatch#spawn(command, ...) abort
379379
\ 'expanded': dispatch#expand(command),
380380
\ 'title': '',
381381
\ }, a:0 ? a:1 : {})
382+
if empty(a:command)
383+
call extend(request, {'wait': 'never'}, 'keep')
384+
endif
382385
let g:dispatch_last_start = request
383386
if empty(request.title)
384387
let request.title = substitute(fnamemodify(matchstr(request.command, '\%(\\.\|\S\)\+'), ':t:r'), '\\\(\s\)', '\1', 'g')

0 commit comments

Comments
 (0)