Skip to content

Commit ce4e076

Browse files
committed
Check g:dispatch_no_strategyname_spawn
The low level actions are spawn and make and the high level are start and dispatch. We should probably be consistent in naming the options too.
1 parent 2c5b283 commit ce4e076

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autoload/dispatch.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,8 @@ endfunction
362362

363363
function! s:dispatch(request) abort
364364
for handler in g:dispatch_handlers
365-
if get(g:, 'dispatch_no_' . handler . '_' . get(a:request, 'action'))
365+
if get(g:, 'dispatch_no_' . handler . '_' . get(a:request, 'action')) ||
366+
\ get(g:, 'dispatch_no_' . handler . '_' . (get(a:request, 'action') ==# 'start' ? 'spawn' : 'dispatch'))
366367
continue
367368
endif
368369
let response = call('dispatch#'.handler.'#handle', [a:request])

0 commit comments

Comments
 (0)