commit 8811a5435defa6f2ff557e99c08e9cfc66af6f91
parent 84baa64b4f1a2cd7a7f313d0cedbbca4f202bd59
Author: Daniel Moch <daniel@danielmoch.com>
Date: Sat, 14 Oct 2017 16:41:17 -0400
Merge pull request #16 from Konfekt/patch-1
support trailing | to execute another command afterwards
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/plugin/makejob.vim b/plugin/makejob.vim
@@ -219,17 +219,17 @@ function! s:MakeJobCompletion(arglead, cmdline, cursorpos)
return l:return
endfunction
-command! -bang -nargs=* -complete=file MakeJob
+command! -bang -bar-nargs=* -complete=file MakeJob
\ call <sid>MakeJob(0,0,0,<bang>0,<q-args>)
-command! -bang -nargs=* -complete=file LmakeJob
+command! -bang -bar -nargs=* -complete=file LmakeJob
\ call <sid>MakeJob(0,1,0,<bang>0,<q-args>)
-command! -bang -nargs=+ -complete=file GrepJob
+command! -bang -bar -nargs=+ -complete=file GrepJob
\ call <sid>MakeJob(1,0,0,<bang>0,<q-args>)
-command! -bang -nargs=+ -complete=file LgrepJob
+command! -bang -bar -nargs=+ -complete=file LgrepJob
\ call <sid>MakeJob(1,1,0,<bang>0,<q-args>)
-command! -bang -nargs=+ -complete=file GrepaddJob
+command! -bang -bar -nargs=+ -complete=file GrepaddJob
\ call <sid>MakeJob(1,0,1,<bang>0,<q-args>)
-command! -bang -nargs=+ -complete=file LgrepaddJob
+command! -bang -bar -nargs=+ -complete=file LgrepaddJob
\ call <sid>MakeJob(1,1,1,<bang>0,<q-args>)
command! -nargs=? -complete=customlist,<sid>MakeJobCompletion
\ MakeJobStop call <sid>JobStop(<f-args>)