Skip to content

Commit 4bd1ecd

Browse files
committed
Use make not cgetfile for completion quickfix events
1 parent 1f39fa1 commit 4bd1ecd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

autoload/dispatch.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ function! dispatch#complete(file, ...) abort
12071207
silent doautocmd ShellCmdPost
12081208
endif
12091209
if !request.background && !get(request, 'aborted')
1210-
call s:cwindow(request, 0, status, '')
1210+
call s:cwindow(request, 0, status, '', 'make')
12111211
redraw!
12121212
endif
12131213
echo label '!'.request.expanded s:postfix(request)
@@ -1260,7 +1260,7 @@ function! dispatch#copen(bang, mods, ...) abort
12601260
if !dispatch#completed(request) && filereadable(request.file . '.complete')
12611261
let request.completed = 1
12621262
endif
1263-
call s:cwindow(request, a:bang, -2, a:mods ==# '<mods>' ? '' : a:mods)
1263+
call s:cwindow(request, a:bang, -2, a:mods ==# '<mods>' ? '' : a:mods, 'cgetfile')
12641264
endfunction
12651265

12661266
function! s:is_quickfix(...) abort
@@ -1314,8 +1314,8 @@ function! s:cgetfile(request, event, ...) abort
13141314
endtry
13151315
endfunction
13161316

1317-
function! s:cwindow(request, all, copen, mods) abort
1318-
call s:cgetfile(a:request, 'cgetfile', a:all)
1317+
function! s:cwindow(request, all, copen, mods, event) abort
1318+
call s:cgetfile(a:request, a:event, a:all)
13191319
let height = get(g:, 'dispatch_quickfix_height', 10)
13201320
if height <= 0
13211321
return

0 commit comments

Comments
 (0)