Automatically update error list when switching buffers