Skip to content

Commit

Permalink
Fix repeated background execution
Browse files Browse the repository at this point in the history
Closes #205
  • Loading branch information
tpope committed Jul 12, 2017
1 parent ca10dc1 commit 14a1695
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions autoload/dispatch.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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.')'
Expand Down

0 comments on commit 14a1695

Please sign in to comment.