Skip to content

Commit 9f0ad9f

Browse files
committed
Support :Dispatch -compiler=... -title=...
1 parent 98ebc5f commit 9f0ad9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/dispatch.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ function! dispatch#compile_command(bang, args, count) abort
475475
let request.format = &errorformat
476476
let request.compiler = s:current_compiler()
477477
else
478-
let request.compiler = dispatch#compiler_for_program(args)
478+
let request.compiler = get(request, 'compiler', dispatch#compiler_for_program(args))
479479
if !empty(request.compiler)
480480
call extend(request,dispatch#compiler_options(request.compiler))
481481
endif
@@ -491,7 +491,7 @@ function! dispatch#compile_command(bang, args, count) abort
491491
if empty(request.compiler)
492492
unlet request.compiler
493493
endif
494-
let request.title = get(request, 'compiler', 'make')
494+
let request.title = get(request, 'title', get(request, 'compiler', 'make'))
495495

496496
if &autowrite || &autowriteall
497497
silent! wall

0 commit comments

Comments
 (0)