Fixed criterion to choose the editor in which the error should be shown.