From 97d6937dd46a2ce3d4acff2f443117dd20b030c8 Mon Sep 17 00:00:00 2001 From: marty Date: Fri, 10 Sep 2010 21:20:04 +1200 Subject: [PATCH] only sign errors for the current buffer --- plugin/syntastic.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index c280c484..92d0c47d 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -111,6 +111,10 @@ let s:next_sign_id = s:first_sign_id function s:SignErrors() if s:BufHasErrorsOrWarningsToDisplay() for i in b:syntastic_loclist + if i['bufnr'] != bufnr("") + continue + endif + let sign_type = 'SyntasticError' if i['type'] == 'W' let sign_type = 'SyntasticWarning'