Skip to content

Commit 09faff3

Browse files
committed
Don't error trying to close only window
Resolves: #323
1 parent 3505862 commit 09faff3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

autoload/dispatch.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,9 @@ function! dispatch#compile_command(bang, args, count, mods, ...) abort
912912
let request.title = get(request, 'title', get(request, 'compiler', 'make'))
913913

914914
call dispatch#autowrite()
915-
cclose
915+
if winnr('$') > 1
916+
cclose
917+
endif
916918
let request.file = dispatch#tempname()
917919
let &errorfile = request.file
918920

0 commit comments

Comments
 (0)