Minor cleanup.

This commit is contained in:
LCD 47 2013-11-11 22:14:05 +02:00
parent 56528e877e
commit 7c638f6f70
2 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ function! syntastic#c#ReadConfig(file)
endif
endfor
return join(map(parameters, 'syntastic#util#shescape(fnameescape(v:val))'), ' ')
return join(map(parameters, 'syntastic#util#shescape(fnameescape(v:val))'))
endfunction
" GetLocList() for C-like compilers
@ -178,7 +178,7 @@ function! s:GetIncludeDirs(filetype)
call extend(include_dirs, g:syntastic_{a:filetype}_include_dirs)
endif
return join(map(syntastic#util#unique(include_dirs), 'syntastic#util#shescape(fnameescape("-I" . v:val))'), ' ')
return join(map(syntastic#util#unique(include_dirs), 'syntastic#util#shescape(fnameescape("-I" . v:val))'))
endfunction
" search the first 100 lines for include statements that are

View File

@ -27,7 +27,7 @@ function! g:SyntasticMakeprgBuilder.New(checker, exe, args, fname, post_args, ta
endfunction
function! g:SyntasticMakeprgBuilder.makeprg()
return join([self.exe(), self.args(), self.fname(), self.post_args(), self.tail()])
return join(filter([self.exe(), self.args(), self.fname(), self.post_args(), self.tail()], '!empty(v:val)'))
endfunction
function! g:SyntasticMakeprgBuilder.exe()