vim-makejob

Minimal, asynchronous quickfix commands for Vim 8.0
git clone git://git.danielmoch.com/vim-makejob.git
Log | Files | Refs | README | LICENSE

commit bef91c6c585240031268e3de8c1b684fce8927df
parent 418b222e80369c3e6ac2bd593f4dfdbb49e6d999
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sun,  4 Dec 2016 20:21:42 -0500

Properly expand special characters in makeprg

Closes #7

Diffstat:
Mplugin/makejob.vim | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/plugin/makejob.vim b/plugin/makejob.vim @@ -85,8 +85,18 @@ function! s:CreateMakeJobWindow(prog) return bufnum endfunction +function! s:Expand(input) + let split_input = split(a:input) + let expanded_input = [] + for token in split_input + let expanded_input += [expand(token)] + endfor + return join(expanded_input) +endfunction + function! s:MakeJob(grep, lmake, grepadd, bang, ...) let make = a:grep ? &grepprg : &makeprg + let make = s:Expand(make) let prog = split(make)[0] let internal_grep = make ==# 'internal' ? 1 : 0 execute 'let openbufnr = bufnr("^'.prog.'$")'