From 6b76c26cbaa2565387b62c7a7af9a56402dcf297 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Sat, 31 Jan 2015 12:38:13 +0200 Subject: [PATCH] Puppet checker: don't redirect stderr when checking version. --- plugin/syntastic.vim | 2 +- syntax_checkers/puppet/puppet.vim | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index 2273ec5d..d72bf1ad 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -19,7 +19,7 @@ if has('reltime') lockvar! g:_SYNTASTIC_START endif -let g:_SYNTASTIC_VERSION = '3.6.0-11' +let g:_SYNTASTIC_VERSION = '3.6.0-14' lockvar g:_SYNTASTIC_VERSION " Sanity checks {{{1 diff --git a/syntax_checkers/puppet/puppet.vim b/syntax_checkers/puppet/puppet.vim index 2c3cd438..caf1386e 100644 --- a/syntax_checkers/puppet/puppet.vim +++ b/syntax_checkers/puppet/puppet.vim @@ -20,8 +20,7 @@ set cpo&vim function! SyntaxCheckers_puppet_puppet_GetLocList() dict if !exists('s:puppet_new') - let ver = self.getVersion(self.getExecEscaped() . ' --version 2>' . syntastic#util#DevNull()) - let s:puppet_new = syntastic#util#versionIsAtLeast(ver, [2, 7, 0]) + let s:puppet_new = syntastic#util#versionIsAtLeast(self.getVersion(), [2, 7, 0]) endif let makeprg = self.makeprgBuild({