Skip to content

Commit 14a1695

Browse files
committed
Fix repeated background execution
Closes #205
1 parent ca10dc1 commit 14a1695

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

autoload/dispatch.vim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,8 +621,10 @@ function! dispatch#compile_command(bang, args, count) abort
621621

622622
call writefile([], request.file)
623623

624-
if s:dispatch(request) && !get(request, 'background')
625-
call s:cgetfile(request)
624+
if s:dispatch(request)
625+
if !get(request, 'background')
626+
call s:cgetfile(request)
627+
endif
626628
else
627629
let request.handler = 'sync'
628630
let after = 'call DispatchComplete('.request.id.')'

0 commit comments

Comments
 (0)