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 aeaa958fd2dcc4108b48bf17472ceb5903f9a965
parent 42feb6b5b63244382cc693caa2db68d6ae6b3323
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sat, 24 Dec 2016 18:44:06 -0500

Further cleanup plugin loading

Diffstat:
Mplugin/makejob.vim | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/plugin/makejob.vim b/plugin/makejob.vim @@ -3,7 +3,10 @@ " AUTHOR: Daniel Moch <daniel@danielmoch.com> " VERSION: 1.1.2-dev " -if exists('g:loaded_makejob') || !has('job') || !has('channel') || !has('quickfix') || &cp +if exists('g:loaded_makejob') || &cp + finish +endif +if !has('job') || !has('channel') || !has('quickfix') finish endif let g:loaded_makejob = 1 @@ -48,7 +51,8 @@ function! s:JobHandler(channel) abort silent execute l:job['outbufnr'].'bwipe!' wincmd p - let l:initqf = l:job['lmake'] ? getloclist(bufwinnr(job['srcbufnr'])) : getqflist() + let l:initqf = l:job['lmake'] ? getloclist(bufwinnr( + \ job['srcbufnr'])) : getqflist() let l:makeoutput = 0 let l:idx = 0 while l:idx < len(l:initqf) @@ -81,7 +85,8 @@ function! s:Expand(input) let l:split_input = split(a:input) let l:expanded_input = [] for l:token in l:split_input - if l:token =~ '^\\\?%\|^\\\?#\|^\\\?\$' && l:token != '$*' && expand(l:token) != '' + if l:token =~ '^\\\?%\|^\\\?#\|^\\\?\$' && l:token != '$*' && + \ expand(l:token) != '' let l:expanded_input += [expand(l:token)] else let l:expanded_input += [l:token]