fix a bug where balloons werent being removed

Remove balloons on every refresh so they dont get left there if all
errors are fixed on the next refresh.

NO ONE LIEKS ZEE STALE BALLOONS!
This commit is contained in:
Martin Grenfell 2011-12-04 00:10:31 +00:00
parent c535a677ac
commit 975315c665

View File

@ -360,8 +360,8 @@ function! SyntasticMake(options)
endfunction
function! s:RefreshBalloons()
let b:syntastic_balloons = {}
if s:BufHasErrorsOrWarningsToDisplay() && has('balloon_eval')
let b:syntastic_balloons = {}
for i in b:syntastic_loclist
let b:syntastic_balloons[i['lnum']] = i['text']
endfor