From d3d5c9a9985214bc645d6fd18892b18f30181cc9 Mon Sep 17 00:00:00 2001 From: Anton Petrov Date: Wed, 12 Nov 2014 22:36:14 +0300 Subject: [PATCH] Add an option to always open quickfix after completion --- autoload/dispatch.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/dispatch.vim b/autoload/dispatch.vim index 8b32c5e8..dc2b6c7e 100644 --- a/autoload/dispatch.vim +++ b/autoload/dispatch.vim @@ -627,8 +627,9 @@ function! dispatch#complete(file) abort let request = s:request(a:file) let request.completed = 1 echo 'Finished:' request.command + let copen = get(g:, 'dispatch_always_copen', 0) if !request.background - call s:cgetfile(request, 0, 0) + call s:cgetfile(request, 0, copen) redraw endif endif