Skip to content

Commit 897de5e

Browse files
committed
Claim quickfix immediately after :Dispatch
I'd like to ditch :Copen entirely in favor of a richer interface for reloading the quickfix window. This is a prerequisite.
1 parent 2e7e037 commit 897de5e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

autoload/dispatch.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,11 @@ function! dispatch#compile_command(bang, args, count) abort
618618
let request.id = len(s:makes)
619619
let s:files[request.file] = request
620620

621-
if !s:dispatch(request)
621+
call writefile([], request.file)
622+
623+
if s:dispatch(request)
624+
call s:cgetfile(request)
625+
else
622626
let request.handler = 'sync'
623627
let after = 'call DispatchComplete('.request.id.')'
624628
redraw!

0 commit comments

Comments
 (0)