Skip to content

Commit f18abc4

Browse files
blueyedtpope
authored andcommitted
Handle programs with dots in the name, e.g. "py.test"
Ref: #71 (comment)
1 parent 5a64570 commit f18abc4

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
@@ -282,7 +282,7 @@ function! dispatch#compiler_for_program(args) abort
282282
return plugin
283283
endif
284284
endfor
285-
let program = fnamemodify(matchstr(args, '\S\+'), ':t:r')
285+
let program = fnamemodify(matchstr(args, '\S\+'), ':t')
286286
if program ==# 'make'
287287
return 'make'
288288
endif
@@ -300,7 +300,7 @@ function! dispatch#compiler_for_program(args) abort
300300
endfor
301301
for [plugin, lines] in plugins
302302
for line in lines
303-
if matchstr(line, '\<CompilerSet\s\+makeprg=\zs[[:alnum:]_-]\+') ==# program
303+
if matchstr(line, '\<CompilerSet\s\+makeprg=\zs[[:alnum:]_.-]\+') ==# program
304304
return plugin
305305
endif
306306
endfor

0 commit comments

Comments
 (0)