tpope / vim-dispatch

dispatch.vim: Asynchronous build and test dispatcher
https://www.vim.org/scripts/script.php?script_id=4504
2.65k stars 132 forks source link

account for let &makeprg in Dispatch makeprg detection in compiler file #354

Open Konfekt opened 3 hours ago

Konfekt commented 3 hours ago

The following idiom in a compiler/*.vim file

let &l:makeprg = 'm'
exe 'CompilerSet makeprg='..escape(&l:makeprg, ' "')

should work fine (maybe requiring further escapes!?), but is not accounted for by :Dispatch. I suspect a regex searches for makeprg=\w+ ?

Konfekt commented 3 hours ago

One can work around by " CompilerSet makeprg=m comments, but that seems rather something to be fixed on Dispatch's side