Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix makeprg construction. #222

Merged
merged 2 commits into from

3 participants

@ldx

Add space before appending the result of ReadConfig() to makeprg. See #215 and #220 for more information.

CC @kongo2002

ldx Fix makeprg construction.
Add space before appending the result of ReadConfig() to makeprg.
2ef26e1
@kongo2002
Collaborator

Good catch - I missed that one in my tests.
Could you add the same fix to the C++ syntax checker - the behavior is basically the same there.

Cheers,
Gregor

@ldx

I pushed another commit with the same fix applied in cpp.vim.

@scrooloose scrooloose merged commit 0278642 into scrooloose:master
@scrooloose
Owner

Cheers :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 28, 2012
  1. Fix makeprg construction.

    ldx authored
    Add space before appending the result of ReadConfig() to makeprg.
  2. Fix makeprg construction for cpp too.

    ldx authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +1 −1  syntax_checkers/c.vim
  2. +1 −1  syntax_checkers/cpp.vim
View
2  syntax_checkers/c.vim
@@ -125,7 +125,7 @@ function! SyntaxCheckers_c_GetLocList()
endif
" add optional config file parameters
- let makeprg .= syntastic#c#ReadConfig(g:syntastic_c_config_file)
+ let makeprg .= ' '.syntastic#c#ReadConfig(g:syntastic_c_config_file)
" process makeprg
let errors = SyntasticMake({ 'makeprg': makeprg,
View
2  syntax_checkers/cpp.vim
@@ -113,7 +113,7 @@ function! SyntaxCheckers_cpp_GetLocList()
endif
" add optional config file parameters
- let makeprg .= syntastic#c#ReadConfig(g:syntastic_cpp_config_file)
+ let makeprg .= ' ' . syntastic#c#ReadConfig(g:syntastic_cpp_config_file)
" process makeprg
let errors = SyntasticMake({ 'makeprg': makeprg,
Something went wrong with that request. Please try again.