Skip to content

Commit 9a80608

Browse files
committed
Fix error on default handler
Closes #196
1 parent 0386ac2 commit 9a80608

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

autoload/dispatch.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ function! dispatch#spawn(command, ...) abort
353353
call add(g:DISPATCH_STARTS[key], request.handler.'/'.dispatch#pid(request))
354354
endif
355355
else
356+
let request.handler = 'sync'
356357
execute '!' . request.command
357358
endif
358359
finally
@@ -618,6 +619,7 @@ function! dispatch#compile_command(bang, args, count) abort
618619
let s:files[request.file] = request
619620

620621
if !s:dispatch(request)
622+
let request.handler = 'sync'
621623
let after = 'call dispatch#complete('.request.id.')'
622624
redraw!
623625
let sp = dispatch#shellpipe(request.file)

0 commit comments

Comments
 (0)