

def on_selection_modified(self, view):
    ' Shows a status message for an error region '
    view.erase_status('glshadervalidator')
    if (self.is_glsl_or_essl(view) and (self.errors is not None)):
        for sel in view.sel():
            for error in self.errors:
                if error.region.contains(sel):
                    view.set_status('glshadervalidator', error.message)
                    return

dataset/ETHPy150Open WebGLTools/GL-Shader-Validator/GLShaderValidator.py GLShaderValidatorCommand.on_selection_modified/original