only sign errors for the current buffer

This commit is contained in:
marty 2010-09-10 21:20:04 +12:00
parent e45183a71d
commit 97d6937dd4

View File

@ -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'