auto close location list when closing or moving to another buffer. also update errors on BufEnter. see #123

This commit is contained in:
millermedeiros 2011-12-16 02:23:00 -02:00
parent d053c8da1d
commit 0d1943e6f5
2 changed files with 5 additions and 1 deletions

View File

@ -340,6 +340,9 @@ The latest dev versions are on github
==============================================================================
7. Changelog *syntastic-changelog*
Next
- auto close location list when closing buffer or moving to a new buffer.
2.1.0
- when the cursor is on a line containing an error, echo the
error msg (kevinw)

View File

@ -89,7 +89,8 @@ augroup syntastic
autocmd cursormoved * call s:EchoCurrentError()
endif
autocmd bufreadpost,bufwritepost * call s:UpdateErrors(1)
autocmd BufReadPost,BufWritePost,BufEnter * call s:UpdateErrors(1)
autocmd BufUnload,BufLeave * lclose
augroup END