diff --git a/autoload/dispatch.vim b/autoload/dispatch.vim index 9d3d05e..1d8755f 100644 --- a/autoload/dispatch.vim +++ b/autoload/dispatch.vim @@ -621,8 +621,10 @@ function! dispatch#compile_command(bang, args, count) abort call writefile([], request.file) - if s:dispatch(request) && !get(request, 'background') - call s:cgetfile(request) + if s:dispatch(request) + if !get(request, 'background') + call s:cgetfile(request) + endif else let request.handler = 'sync' let after = 'call DispatchComplete('.request.id.')'