From 6b2fd05b668d36083e0beaa0ea504a31318233f5 Mon Sep 17 00:00:00 2001 From: Pavel Argentov Date: Tue, 16 Aug 2011 21:46:39 +0400 Subject: [PATCH] FreeBSD shell workaround --- plugin/syntastic.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index a20728b8..7b283429 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -19,6 +19,10 @@ let g:loaded_syntastic_plugin = 1 let s:running_windows = has("win16") || has("win32") || has("win64") +if !s:running_windows + let s:uname = system('uname') +endif + if !exists("g:syntastic_enable_signs") || !has('signs') let g:syntastic_enable_signs = 0 endif @@ -258,7 +262,7 @@ function! SyntasticMake(options) let old_shell = &shell let old_errorformat = &errorformat - if !s:running_windows + if !s:running_windows && (s:uname !~ "FreeBSD") "this is a hack to stop the screen needing to be ':redraw'n when "when :lmake is run. Otherwise the screen flickers annoyingly let &shellpipe='&>'