Skip to content

Commit

Permalink
Further cleanup plugin loading
Browse files Browse the repository at this point in the history
  • Loading branch information
djmoch committed Dec 24, 2016
1 parent 42feb6b commit aeaa958
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions plugin/makejob.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
" AUTHOR: Daniel Moch <[email protected]>
" 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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit aeaa958

Please sign in to comment.