Skip to content

Commit 6cc2691

Browse files
committed
Avoid unnecessary close and re-open of quickfix window
References: #331
1 parent 00e77d9 commit 6cc2691

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

autoload/dispatch.vim

+2-3
Original file line numberDiff line numberDiff line change
@@ -916,9 +916,6 @@ function! dispatch#compile_command(bang, args, count, mods, ...) abort
916916
let request.title = get(request, 'title', get(request, 'compiler', 'make'))
917917

918918
call dispatch#autowrite()
919-
if winnr('$') > 1
920-
cclose
921-
endif
922919
let request.file = dispatch#tempname()
923920
let &errorfile = request.file
924921

@@ -957,6 +954,8 @@ function! dispatch#compile_command(bang, args, count, mods, ...) abort
957954
if result is 2
958955
exe 'botright copen' get(g:, 'dispatch_quickfix_height', '')
959956
wincmd p
957+
elseif winnr('$') > 1
958+
cclose
960959
endif
961960
endif
962961
else

0 commit comments

Comments
 (0)